Method: Extlib::Inflection.demodulize
- Defined in:
- lib/extlib/inflection.rb
.demodulize(class_name_in_module) ⇒ Object
Removes the module part from the expression in the string
64 65 66 |
# File 'lib/extlib/inflection.rb', line 64 def demodulize(class_name_in_module) class_name_in_module.to_s.gsub(/^.*::/, '') end |