Liquid::Condition
Inherits Reference / Object
Container for liquid nodes which conveniently wraps decision making logic
Example:
c = Condition.new("1", "==", "1") c.evaluate #=> true
Constructors
new(left = nil, operator = nil, right = nil)
SourceInstance methods
and(condition)
Sourceattachment
Sourceelse?
Sourceevaluate(context = Context.new)
Sourceinspect
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
This method should usually not be overridden. It delegates to
#inspect(IO) which can be overridden for custom implementations.
Also see #to_s.
left
Sourceleft=(left : Type)
Sourceoperator
Sourceor(condition)
Sourceright
Sourceright=(right : Type)
Source