method

demodulize

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"

1Note

correct link below

daslicious ยท Sep 23, 2014