method
demodulize
v4.2.1 -
Show latest stable
- Class:
ActiveSupport::Inflector
demodulize(path)public
Removes the module part from the expression in the string.
'ActiveRecord::CoreExtensions::String::Inflections'.demodulize # => "Inflections" 'Inflections'.demodulize # => "Inflections" '::Inflections'.demodulize # => "Inflections" ''.demodulize # => ""
See also deconstantize.