Class: FEEL::ContextEntryList

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

Instance Method Summary collapse

Methods inherited from Node

#qualified_names_in_context, #raise_evaluation_error

Instance Method Details

#context_entriesObject



666
667
668
# File 'lib/feel/nodes.rb', line 666

def context_entries
  [context_entry] + tail.elements.map { |e| e.context_entry }
end

#eval(context = {}) ⇒ Object



660
661
662
663
664
# File 'lib/feel/nodes.rb', line 660

def eval(context = {})
  context_entries.inject({}) do |hash, entry|
    hash.merge(entry.eval(context))
  end
end