Class: Liquid2::ArithmeticExpression
- Inherits:
-
Expression
- Object
- Expression
- Liquid2::ArithmeticExpression
- Defined in:
- lib/liquid2/expressions/arithmetic.rb
Overview
Base class for all arithmetic expressions.
Instance Attribute Summary
Attributes inherited from Expression
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize(token, left, right) ⇒ ArithmeticExpression
constructor
A new instance of ArithmeticExpression.
Methods inherited from Expression
Constructor Details
#initialize(token, left, right) ⇒ ArithmeticExpression
Returns a new instance of ArithmeticExpression.
11 12 13 14 15 |
# File 'lib/liquid2/expressions/arithmetic.rb', line 11 def initialize(token, left, right) super(token) @left = left @right = right end |
Instance Method Details
#children ⇒ Object
17 |
# File 'lib/liquid2/expressions/arithmetic.rb', line 17 def children = [@left, @right] |