Add to_integer filter

This commit is contained in:
David Zhang 2016-07-13 10:52:18 +08:00
parent 506ba8af1e
commit 5194d1a42c
1 changed files with 9 additions and 0 deletions

View File

@ -260,6 +260,15 @@ module Jekyll
end end
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 # Sort an array of objects
# #
# input - the object array # input - the object array