lib/padrino-helpers/format_helpers.rb in padrino-helpers-0.14.0.rc1 vs lib/padrino-helpers/format_helpers.rb in padrino-helpers-0.14.0.rc2

- old
+ new

@@ -88,11 +88,11 @@ ## # Attempts to pluralize the singular word unless count is 1. If plural is supplied, it will use that when count is > 1, # otherwise it will use inflector to determine the plural form. # - # @param [Fixnum] count + # @param [Integer] count # The count which determines pluralization. # @param [String] singular # The word to be pluralized if appropriate based on +count+. # @param [String] plural # Explicit pluralized word to be used; if not specified uses inflector. @@ -112,11 +112,11 @@ # # @param [String] text # The text to be truncated. # @param [Hash] options # Formatting options for the truncation. - # @option options [Fixnum] :length (30) + # @option options [Integer] :length (30) # The number of characters before truncation occurs. # @option options [String] :omission ("...") # The characters that are placed after the truncated text. # # @return [String] The text truncated after the given number of characters. @@ -139,11 +139,11 @@ # # @param [String] text # The text to be truncated. # @param [Hash] options # Formatting options for the truncation. - # @option options [Fixnum] :length (30) + # @option options [Integer] :length (30) # The number of words before truncation occurs. # @option options [String] :omission ("...") # The characters that are placed after the truncated text. # # @return [String] The text truncated after the given number of words. @@ -166,10 +166,10 @@ # @overload word_wrap(text, options={}) # @param [String] text # The text to be wrapped. # @param [Hash] options # Formatting options for the wrapping. - # @option options [Fixnum] :line_width (80) + # @option options [Integer] :line_width (80) # The line width before a wrap should occur. # # @return [String] The text with line wraps for lines longer then +line_width+. # # @example