class Handlebars::Helpers::Inflection::Pluralize
Returns the plural form of the word in the string
Public Instance Methods
parse(value)
click to toggle source
Parse will Returns the plural form of the word in the string
@example
puts Pluralize.new.parse('name') names puts Pluralize.new.parse('octopus') octopi
@return [String] value in plural form
# File lib/handlebars/helpers/inflection/pluralize.rb, line 28 def parse(value) return '' if value.nil? value = value.to_s if value.is_a?(Symbol) value.pluralize end