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