Class: Basic101::StopStatement
- Defined in:
- lib/basic101/stop_statement.rb
Instance Attribute Summary
Attributes inherited from Statement
Instance Method Summary collapse
Methods inherited from Statement
#data_items, #exec, #line_number, #raise_error_with_line_number
Methods included from Identity
Instance Method Details
#execute(runtime) ⇒ Object
9 10 11 12 |
# File 'lib/basic101/stop_statement.rb', line 9 def execute(runtime) runtime.output.puts "Break in line #{@line.line_number}" runtime.end_program end |