method
demodulize
v2.3.8 -
Show latest stable
- Class:
ActiveSupport::Inflector
demodulize(class_name_in_module)public
Removes the module part from the expression in the string.
Examples:
"ActiveRecord::CoreExtensions::String::Inflections".demodulize # => "Inflections" "Inflections".demodulize # => "Inflections"