Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#demodulizeObject



53
54
55
56
57
58
59
60
# File 'lib/core_ext.rb', line 53

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