method
const_regexp
v4.1.8 -
Show latest stable
- Class:
ActiveSupport::Inflector
const_regexp(camel_cased_word)private
Mount a regular expression that will match part by part of the constant.
const_regexp("Foo::Bar::Baz") # => /Foo(::Bar(::Baz)?)?/ const_regexp("::") # => /::/