instance method
add
Ruby on Rails 5.0.7.2
Since v5.0.7.2 Last seen in v8.0.5.1Signature
add(words)
No documentation comment.
Parameters
-
wordsreq
Source
# File activesupport/lib/active_support/inflector/inflections.rb, line 45
def add(words)
self.concat(words.flatten.map(&:downcase))
@regex_array += self.map {|word| to_regex(word) }
self
end
Defined in activesupport/lib/active_support/inflector/inflections.rb line 45
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Inflector::Inflections::Uncountables