Method: ActiveSupport::Inflector::Inflections#initialize_dup
- Defined in:
- lib/active_support/inflector/inflections.rb
#initialize_dup(orig) ⇒ Object
Private, for the test suite.
86 87 88 89 90 91 |
# File 'lib/active_support/inflector/inflections.rb', line 86 def initialize_dup(orig) # :nodoc: %w(plurals singulars uncountables humans acronyms).each do |scope| instance_variable_set("@#{scope}", orig.public_send(scope).dup) end define_acronym_regex_patterns end |