Document prepend string filter

This commit is contained in:
Dave Geddes
2022-03-14 18:50:21 +00:00
parent 7357dcf185
commit d35db9631e
+6 -1
View File
@@ -350,7 +350,12 @@ module Liquid
InputIterator.new(input, context).concat(array)
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)
string.to_s + input.to_s
end