Flowdock
method

demodulize

Importance_2
v2.1.0 - Show latest stable - 1 note - Class: 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"
Show source
Register or log in to add new notes.
September 24, 2009 - (>= v2.2.1)
0 thanks