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



693
694
695
# File 'lib/feel/nodes.rb', line 693

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

#eval(context = {}) ⇒ Object



687
688
689
690
691
# File 'lib/feel/nodes.rb', line 687

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