Class: Luoma::LtExpression

Inherits:
InfixExpression show all
Defined in:
lib/luoma/expression.rb,
sig/luoma/expression.rbs

Instance Attribute Summary

Attributes inherited from Expression

#span, #token

Instance Method Summary collapse

Methods inherited from InfixExpression

#children, #initialize

Methods inherited from Expression

#children, #initialize, #scope

Constructor Details

This class inherits a constructor from Luoma::InfixExpression

Instance Method Details

#evaluate(context) ⇒ Object

Signature:

  • (RenderContext) -> untyped



476
477
478
# File 'lib/luoma/expression.rb', line 476

def evaluate(context)
  context.env.lt?(@left.evaluate(context), @right.evaluate(context), context, @span)
end

#to_sObject

Signature:

  • () -> String



481
482
483
# File 'lib/luoma/expression.rb', line 481

def to_s
  "#{@left} < #{@right}"
end