Module: Collective

Defined in:
lib/collective.rb,
lib/collective.rb,
lib/collective/version.rb

Defined Under Namespace

Modules: Log, Mocks, Redis, Utilities Classes: Configuration, ConfigurationError, Idler, Key, LifecycleObserver, Messager, Monitor, Policy, Pool, Registry, SignalHook, Worker

Constant Summary collapse

VERSION =
"0.2.1"

Class Method Summary collapse

Class Method Details

.resolve_class(classname) ⇒ Object

Parameters:

  • classname


44
45
46
# File 'lib/collective.rb', line 44

def resolve_class(classname)
  classname.split(/::/).inject(Object) { |a,i| a.const_get(i) }
end