Class: Luoma::GeExpression
- Inherits:
-
InfixExpression
- Object
- Expression
- InfixExpression
- Luoma::GeExpression
- 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
514 515 516 517 518 |
# File 'lib/luoma/expression.rb', line 514 def evaluate(context) left = @left.evaluate(context) right = @right.evaluate(context) context.env.lt?(right, left, context, @span) || context.env.eq?(left, right, context, @span) end |
#to_s ⇒ Object
521 522 523 |
# File 'lib/luoma/expression.rb', line 521 def to_s "#{@left} >= #{@right}" end |