Class: FEEL::PositionalParameters
- Inherits:
-
Node
- Object
- Treetop::Runtime::SyntaxNode
- Node
- FEEL::PositionalParameters
show all
- Defined in:
- lib/feel/nodes.rb
Overview
- positional parameters = [ expression , { "," , expression } ] ;
Instance Method Summary
collapse
Methods inherited from Node
#access_property, #contains_input_placeholder?, #qualified_names_in_context, #raise_evaluation_error
Instance Method Details
#eval(context = {}) ⇒ Object
525
526
527
|
# File 'lib/feel/nodes.rb', line 525
def eval(context = {})
expressions.inject([]) { |arr, exp| arr << exp.eval(context) }
end
|
#expressions ⇒ Object
529
530
531
|
# File 'lib/feel/nodes.rb', line 529
def expressions
[expression] + more_expressions.elements.map { |e| e.expression }
end
|