Class: Expressive::Program

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/expressive.rb

Instance Method Summary collapse

Instance Method Details

#eval(scope) ⇒ Object



66
67
68
69
70
# File 'lib/expressive.rb', line 66

def eval(scope)
  elements.map {|e|
    e.eval(scope)
  }.last
end