Class: Luoma::ContainsExpression
- Inherits:
-
InfixExpression
- Object
- Expression
- InfixExpression
- Luoma::ContainsExpression
- Defined in:
- lib/luoma/expression.rb,
sig/luoma/expression.rbs
Instance Attribute Summary
Attributes inherited from Expression
Instance Method Summary collapse
Methods inherited from InfixExpression
Methods inherited from Expression
#children, #initialize, #scope
Constructor Details
This class inherits a constructor from Luoma::InfixExpression
Instance Method Details
#evaluate(context) ⇒ Object
528 529 530 |
# File 'lib/luoma/expression.rb', line 528 def evaluate(context) context.env.contains?(@left.evaluate(context), @right.evaluate(context), context, @span) end |
#to_s ⇒ Object
533 534 535 |
# File 'lib/luoma/expression.rb', line 533 def to_s "#{@left} contains #{@right}" end |