method
to_regex
rails latest stable - Class:
ActiveSupport::Inflector::Inflections::Uncountables
to_regex(string)private
No documentation available.
# File activesupport/lib/active_support/inflector/inflections.rb, line 60
def to_regex(string)
/\b#{::Regexp.escape(string)}\Z/
end