class Basic101::ElseStatement

Attributes

end_statement[W]

Public Class Methods

new() click to toggle source
# File lib/basic101/else_statement.rb, line 11
def initialize
end

Public Instance Methods

execute(runtime) click to toggle source
# File lib/basic101/else_statement.rb, line 14
def execute(runtime)
  @end_statement.goto_following_statement(runtime)
end
goto_following_statement(runtime) click to toggle source
# File lib/basic101/else_statement.rb, line 18
def goto_following_statement(runtime)
  runtime.goto_index(@index + 1)
end