Method: Extlib::Inflection.clear
- Defined in:
- lib/extlib_lite/inflections.rb
.clear(type = :all) ⇒ Object
81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/extlib_lite/inflections.rb', line 81 def clear(type = :all) if type == :singular || type == :all @singular_of = {} @singular_rules = [] @singularization_rules, @singularization_regex = nil, nil end if type == :plural || type == :all @singular_of = {} @singular_rules = [] @singularization_rules, @singularization_regex = nil, nil end end |