struct Liquid::Expression
- Liquid::Expression
- Struct
- Value
- Object
Overview
This represent a liquid expression used in under {{ }}
or passed to statements like if, case, etc... including
filter and their arguments.
The Expression is reentrant and doesn't store any state besides the compiled expression.
To evaluate a expression call the evaluate
method with the desired Context
.
Defined in:
liquid/expression.crConstructors
Instance Method Summary
- #==(other : self)
- #apply_operators(ctx : Context, stack : Stack) : Any
- #eval(ctx : Context) : Any
- #expression : String
- #expression_error(ctx : Context, message : String)
-
#to_s(io : IO)
Same as
#inspect(io)
.