module Rodzilla::Util
Public Class Methods
demodulize(path)
click to toggle source
Extracts the class name from a module string
example:
demodulize( Rodzilla::WebService::Error ) => 'Error'
returns the String path argument
# File lib/rodzilla/util.rb, line 10 def demodulize(path) path = path.to_s if i = path.rindex('::') path[(i+2)..-1] else path end end
Private Instance Methods
demodulize(path)
click to toggle source
Extracts the class name from a module string
example:
demodulize( Rodzilla::WebService::Error ) => 'Error'
returns the String path argument
# File lib/rodzilla/util.rb, line 10 def demodulize(path) path = path.to_s if i = path.rindex('::') path[(i+2)..-1] else path end end