Class: SpotFeel::SimpleExpressions

Inherits:
Node
  • Object
show all
Defined in:
lib/spot_feel/nodes.rb

Overview

  1. simple expressions = simple expression , { “,” , simple expression } ;

Instance Method Summary collapse

Methods inherited from Node

#qualified_names_in_context, #raise_evaluation_error

Instance Method Details

#eval(context = {}) ⇒ Object



70
71
72
# File 'lib/spot_feel/nodes.rb', line 70

def eval(context = {})
  [expr.eval(context)] + more_exprs.elements.map { |element| element.eval(context) }
end