Methods
Class Public methods
new()
Source:
# File activesupport/lib/active_support/inflector/inflections.rb, line 33
def initialize
@regex_array = []
super
end
Instance Public methods
<<(*word)
Source:
# File activesupport/lib/active_support/inflector/inflections.rb, line 43
def <<(*word)
add(word)
end
add(words)
Source:
# File activesupport/lib/active_support/inflector/inflections.rb, line 47
def add(words)
words = words.flatten.map(&:downcase)
concat(words)
@regex_array += words.map { |word| to_regex(word) }
self
end