Class: SpotFeel::FilterExpression
- Defined in:
- lib/spot_feel/nodes.rb
Overview
-
filter expression = expression , “[” , expression , “]” ;
Instance Method Summary collapse
Methods inherited from Node
#qualified_names_in_context, #raise_evaluation_error
Instance Method Details
#eval(context = {}) ⇒ Object
515 516 517 518 |
# File 'lib/spot_feel/nodes.rb', line 515 def eval(context = {}) filter_expression = filter_expression(context) filter_expression.select { |input| filter(input, context) } end |