Flowdock
method

const_regexp

Importance_1
Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: ActiveSupport::Inflector
const_regexp(camel_cased_word) private

Mounts a regular expression, returned as a string to ease interpolation, that will match part by part the given constant.

const_regexp("Foo::Bar::Baz") # => "Foo(::Bar(::Baz)?)?"
const_regexp("::")            # => "::"
Show source
Register or log in to add new notes.