Class: FEEL::ContextEntryList

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

Instance Method Summary collapse

Methods inherited from Node

#access_property, #contains_input_placeholder?, #qualified_names_in_context, #raise_evaluation_error

Instance Method Details

#context_entriesObject



747
748
749
# File 'lib/feel/nodes.rb', line 747

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

#eval(context = {}) ⇒ Object



741
742
743
744
745
# File 'lib/feel/nodes.rb', line 741

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