Class: SpotFeel::ListEntries

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

Instance Method Summary collapse

Methods inherited from Node

#qualified_names_in_context, #raise_evaluation_error

Instance Method Details

#eval(context = {}) ⇒ Object



596
597
598
# File 'lib/spot_feel/nodes.rb', line 596

def eval(context = {})
  expressions.inject([]) { |arr, exp| arr << exp.eval(context) }
end

#expressionsObject



600
601
602
# File 'lib/spot_feel/nodes.rb', line 600

def expressions
  [expression] + more_expressions.elements.map { |e| e.expression }
end