Class: Liquid2::Times
- Inherits:
-
ArithmeticExpression
- Object
- Expression
- ArithmeticExpression
- Liquid2::Times
- Defined in:
- lib/liquid2/expressions/arithmetic.rb
Overview
Infix multiplication
Instance Attribute Summary
Attributes inherited from Expression
Instance Method Summary collapse
Methods inherited from ArithmeticExpression
Methods inherited from Expression
#children, #initialize, #scope
Constructor Details
This class inherits a constructor from Liquid2::ArithmeticExpression
Instance Method Details
#evaluate(context) ⇒ Object
48 49 50 51 |
# File 'lib/liquid2/expressions/arithmetic.rb', line 48 def evaluate(context) left, right = inner_evaluate(context) left * right end |