Package liqp.filters
Class Where
java.lang.Object
liqp.LValue
liqp.filters.Filter
liqp.filters.Where
There are two different implementations of this filter in ruby.
One is from shopify/liquid package:
https://github.com/Shopify/liquid/blob/master/lib/liquid/standardfilters.rb
https://github.com/Shopify/liquid/blob/master/test/integration/standard_filter_test.rb
And the other is from jekyll/jekyll package:
https://github.com/jekyll/jekyll/blob/master/lib/jekyll/filters.rb
https://github.com/jekyll/jekyll/blob/master/test/test_filters.rb
The differ between them are in how they work with objects and arrays as second argument. And this is rare usage case,
and even more, java is not a ruby so we cannot implement exact behavior for these edge cases.
-
Field Summary
Fields inherited from class liqp.LValue
BREAK, CONTINUE, rubyDateTimeFormat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(Object value, TemplateContext context, Object... params) Applies the filter on the 'value', with the given 'context'.Methods inherited from class liqp.LValue
areEqual, asAppendableObject, asArray, asBoolean, asFormattedNumber, asList, asMap, asNumber, asRubyDate, asStrictNumber, asString, asTemporal, canBeDouble, canBeInteger, canBeNumber, isArray, isBlank, isFalsy, isInteger, isMap, isNumber, isString, isTemporal, isTruthy, mapAsArray, temporalAsArray
-
Constructor Details
-
Where
public Where()
-
-
Method Details
-
apply
Description copied from class:FilterApplies the filter on the 'value', with the given 'context'.
-