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