Class: Liquid2::BooleanExpression
- Inherits:
-
Expression
- Object
- Expression
- Liquid2::BooleanExpression
- Defined in:
- lib/liquid2/expressions/boolean.rb
Overview
An expression that evaluates to true or false.
Instance Attribute Summary
Attributes inherited from Expression
Instance Method Summary collapse
- #children ⇒ Object
- #evaluate(context) ⇒ Object
-
#initialize(token, expr) ⇒ BooleanExpression
constructor
A new instance of BooleanExpression.
Methods inherited from Expression
Constructor Details
#initialize(token, expr) ⇒ BooleanExpression
Returns a new instance of BooleanExpression.
9 10 11 12 |
# File 'lib/liquid2/expressions/boolean.rb', line 9 def initialize(token, expr) super(token) @expr = expr end |
Instance Method Details
#children ⇒ Object
19 |
# File 'lib/liquid2/expressions/boolean.rb', line 19 def children = [@expr] |