Class: SpotFeel::ContextEntryList
- Inherits:
-
Node
- Object
- Treetop::Runtime::SyntaxNode
- Node
- SpotFeel::ContextEntryList
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
#context_entries ⇒ Object
637
638
639
|
# File 'lib/spot_feel/nodes.rb', line 637
def context_entries
[context_entry] + tail.elements.map { |e| e.context_entry }
end
|
#eval(context = {}) ⇒ Object
631
632
633
634
635
|
# File 'lib/spot_feel/nodes.rb', line 631
def eval(context = {})
context_entries.inject({}) do |hash, entry|
hash.merge(entry.eval(context))
end
end
|