Module: Conversocial::Utils::Strings

Included in:
Resources::Models::Base, Resources::QueryEngines::Base
Defined in:
lib/conversocial/utils/strings.rb

Instance Method Summary collapse

Instance Method Details

#demodulize(path) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/conversocial/utils/strings.rb', line 6

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