Parent

Files

Class/Module Index [+]

Quicksearch

Paperclip::Interpolations::PluralCache

Public Class Methods

new() click to toggle source
# File lib/paperclip/interpolations/plural_cache.rb, line 4
def initialize
  @cache = {}
end

Public Instance Methods

pluralize(word) click to toggle source
# File lib/paperclip/interpolations/plural_cache.rb, line 8
def pluralize(word)
  @cache[word] ||= word.pluralize
end
underscore_and_pluralize(word) click to toggle source
# File lib/paperclip/interpolations/plural_cache.rb, line 12
def underscore_and_pluralize(word)
  @cache[word] ||= word.underscore.pluralize
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.