Class: Lol
- Inherits:
-
Object
- Object
- Lol
- Defined in:
- lib/lol.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(tree) ⇒ Lol
constructor
A new instance of Lol.
Constructor Details
#initialize(tree) ⇒ Lol
Returns a new instance of Lol.
5 6 7 8 |
# File 'lib/lol.rb', line 5 def initialize(tree) @tree = tree @variables = { } end |
Instance Method Details
#execute ⇒ Object
10 11 12 |
# File 'lib/lol.rb', line 10 def execute execute_statement_list(@tree) end |