Class: PersonifyLanguage::Substitutable

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/personify/parser/personify_node_classes.rb

Instance Method Summary collapse

Instance Method Details

#eval(env) ⇒ Object



15
16
17
18
19
20
21
22
23
# File 'lib/personify/parser/personify_node_classes.rb', line 15

def eval(env)
  # puts expressions.inspect
  last_eval = expressions.eval(env)
  if last_eval.nil?
    text_value
  else
    last_eval
  end
end