Class: String

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

Instance Method Summary collapse

Instance Method Details

#demodulizeObject


2
3
4
5
6
7
8
# File 'lib/core_ext/string.rb', line 2

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