Class: Expressive::List
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Expressive::List
- Defined in:
- lib/expressive.rb
Instance Method Summary collapse
Instance Method Details
#eval(scope) ⇒ Object
61 62 63 64 |
# File 'lib/expressive.rb', line 61 def eval(scope) function = statements.first.eval(scope) function.call(scope, statements[1..-1]) end |
#statements ⇒ Object
57 58 59 |
# File 'lib/expressive.rb', line 57 def statements elements[1].elements.map {|e| e.data } end |