Class: Basic101::EndifStatement

Inherits:
Statement show all
Defined in:
lib/basic101/endif_statement.rb

Instance Attribute Summary

Attributes inherited from Statement

#index, #line

Instance Method Summary collapse

Methods inherited from Statement

#data_items, #exec, #line_number, #raise_error_with_line_number

Methods included from Identity

#==

Constructor Details

#initializeEndifStatement

Returns a new instance of EndifStatement.



9
10
# File 'lib/basic101/endif_statement.rb', line 9

def initialize
end

Instance Method Details

#execute(runtime) ⇒ Object



12
13
# File 'lib/basic101/endif_statement.rb', line 12

def execute(runtime)
end

#goto_following_statement(runtime) ⇒ Object



15
16
17
# File 'lib/basic101/endif_statement.rb', line 15

def goto_following_statement(runtime)
  runtime.goto_index(@index + 1)
end