Module: Kernel

Defined in:
lib/spiderfw/utils/monkey/kernel.rb

Overview

Kernel monkey patch.

Instance Method Summary collapse

Instance Method Details

#const_get_full(const) ⇒ Object

Utility method to get a full constant, like M::N::A – (from Merb)



8
9
10
# File 'lib/spiderfw/utils/monkey/kernel.rb', line 8

def const_get_full(const)
    const.to_s.split("::").inject(Object) {|c1,c2| c1.const_get(c2)}
end