clear(scope = :all)
public
Clears the loaded inflections within a given scope (default is
:all). Give the scope as a symbol of the inflection type, the
options are: :plurals, :singulars,
:uncountables, :humans, :acronyms.
clear :all
clear :plurals
Show source
def clear(scope = :all)
case scope
when :all
clear(:acronyms)
clear(:plurals)
clear(:singulars)
clear(:uncountables)
clear(:humans)
when :acronyms
@acronyms = {}
define_acronym_regex_patterns
when :uncountables
@uncountables = Uncountables.new
when :plurals, :singulars, :humans
instance_variable_set "@#{scope}", []
end
end