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
Examples:
clear :all
clear :plurals
Show source
def clear(scope = :all)
case scope
when :all
@plurals, @singulars, @uncountables = [], [], []
else
instance_variable_set "@#{scope}", []
end
end