diff --git a/lib/jekyll/filters.rb b/lib/jekyll/filters.rb index 231eb7b6..71e0dabd 100644 --- a/lib/jekyll/filters.rb +++ b/lib/jekyll/filters.rb @@ -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