Parent

ApipieBindings::Inflector

Public Class Methods

inflections(locale = :en) click to toggle source
# File lib/apipie_bindings/inflector.rb, line 92
def self.inflections(locale = :en)
  if block_given?
    yield ApipieBindings::Inflections.instance(locale)
  else
    ApipieBindings::Inflections.instance(locale)
  end
end
pluralize(word, locale = :en) click to toggle source
# File lib/apipie_bindings/inflector.rb, line 84
def self.pluralize(word, locale = :en)
  apply_inflections(word, inflections(locale).plurals)
end
singularize(word, locale = :en) click to toggle source
# File lib/apipie_bindings/inflector.rb, line 88
def self.singularize(word, locale = :en)
  apply_inflections(word, inflections(locale).singulars)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.