ActiveSupport::Inflector::Inflections::Uncountables Ruby on Rails 5.1.2 Class ActiveSupport::Inflector::Inflections::Uncountables < Array activesupport/lib/active_support/inflector/inflections.rb Methods # << A add D delete N new U uncountable? Class Public methods new() Link Source: show | on GitHub # File activesupport/lib/active_support/inflector/inflections.rb, line 32 def initialize @regex_array = [] super end Instance Public methods <<(*word) Link Source: show | on GitHub # File activesupport/lib/active_support/inflector/inflections.rb, line 42 def <<(*word) add(word) end add(words) Link Source: show | on GitHub # File activesupport/lib/active_support/inflector/inflections.rb, line 46 def add(words) words = words.flatten.map(&:downcase) concat(words) @regex_array += words.map { |word| to_regex(word) } self end delete(entry) Link Source: show | on GitHub # File activesupport/lib/active_support/inflector/inflections.rb, line 37 def delete(entry) super entry @regex_array.delete(to_regex(entry)) end uncountable?(str) Link Source: show | on GitHub # File activesupport/lib/active_support/inflector/inflections.rb, line 53 def uncountable?(str) @regex_array.any? { |regex| regex.match? str } end