method
uncountable?
v8.1.1 -
Show latest stable
- Class:
ActiveSupport::Inflector::Inflections::Uncountables
uncountable?(str)public
No documentation available.
# File activesupport/lib/active_support/inflector/inflections.rb, line 68
def uncountable?(str)
if @pattern.nil?
members_pattern = Regexp.union(@members.map { |w| /#{Regexp.escape(w)}/ })
@pattern = /\b#{members_pattern}\Z/
end
@pattern.match?(str)
end