Flowdock
demodulize(path) public

Removes the module part from the expression in the string.

demodulize('ActiveRecord::CoreExtensions::String::Inflections') # => "Inflections"
demodulize('Inflections')                                       # => "Inflections"
demodulize('::Inflections')                                     # => "Inflections"
demodulize('')                                                  # => ""

See also #deconstantize.

Show source
Register or log in to add new notes.