Class: FEEL::ContextEntryList

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

Instance Method Summary collapse

Methods inherited from Node

#access_property, #qualified_names_in_context, #raise_evaluation_error

Instance Method Details

#context_entriesObject



729
730
731
# File 'lib/feel/nodes.rb', line 729

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

#eval(context = {}) ⇒ Object



723
724
725
726
727
# File 'lib/feel/nodes.rb', line 723

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