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