mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 10:52:48 -07:00
Document prepend string filter
This commit is contained in:
@@ -350,7 +350,12 @@ module Liquid
|
|||||||
InputIterator.new(input, context).concat(array)
|
InputIterator.new(input, context).concat(array)
|
||||||
end
|
end
|
||||||
|
|
||||||
# prepend a string to another
|
# @public_docs
|
||||||
|
# @syntax {{ string | prepend: string }}
|
||||||
|
# @summary Prepend a string to another string.
|
||||||
|
# @type filter
|
||||||
|
# @category String
|
||||||
|
# @return string
|
||||||
def prepend(input, string)
|
def prepend(input, string)
|
||||||
string.to_s + input.to_s
|
string.to_s + input.to_s
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user