Module: Dolarblue::Inflector
Instance Method Summary collapse
-
#demodulize(path) ⇒ String
Removes the module part from the expression in the string.
Instance Method Details
#demodulize(path) ⇒ String
Removes the module part from the expression in the string.
14 15 16 17 18 19 20 21 |
# File 'lib/dolarblue/inflector.rb', line 14 def demodulize(path) path = path.to_s if i = path.rindex('::') path[(i+2)..-1] else path end end |