module GorillaPatch::Namespace

Adding namespaces-changing methods

Public Instance Methods

deconstantize() click to toggle source
# File lib/gorilla_patch/namespace.rb, line 11
def deconstantize
        self[0, rindex('::') || 0]
end
demodulize() click to toggle source
# File lib/gorilla_patch/namespace.rb, line 7
def demodulize
        split('::').last.to_s
end