Package liqp.filters
Class Unshift
java.lang.Object
liqp.LValue
liqp.filters.Filter
liqp.filters.Unshift
Jekyll-specific filter for array manipulation: Return a new array with the given item added to the
beginning. If the filtered value is not an array, it is returned unmodified.
- Author:
- Christian Kohlschütter
- See Also:
-
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
-
Unshift
public Unshift()
-
-
Method Details
-
apply
Description copied from class:FilterApplies the filter on the 'value', with the given 'context'.
-