Method: Inflections.demodulize

Defined in:
lib/build/ExtendedString.rb

.demodulize(path) ⇒ Object

Removes the module part from the expression in the string.



329
330
331
332
333
334
335
336
# File 'lib/build/ExtendedString.rb', line 329

def demodulize(path)
  path = path.to_s
  if i = path.rindex('::')
    path[(i+2)..-1]
  else
    path
  end
end