struct

Liquid::Expression

Inherits Struct / Value / Object

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.

Constructors

new(expression : String)
Source

Instance methods

==(other : self)
Source
apply_operators(ctx : Context, stack : Stack) : Any
Source
eval(ctx : Context) : Any
Source
expression
Source
expression_error(ctx : Context, message : String)
Source
to_s(io : IO)

Same as #inspect(io).

Source