Add to_integer filter

This commit is contained in:
David Zhang
2016-07-13 10:52:18 +08:00
parent 506ba8af1e
commit 5194d1a42c

View File

@@ -260,6 +260,15 @@ module Jekyll
end
end
# Convert the input into integer
#
# input - the object string
#
# Returns the integer value
def to_integer(input)
input.to_i
end
# Sort an array of objects
#
# input - the object array