mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
Add to_integer filter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user