Module: IocRb::ConstLoaders::Native

Defined in:
lib/ioc_rb/const_loaders/native.rb

Class Method Summary collapse

Class Method Details

.load_const(const_name) ⇒ Object



3
4
5
6
7
# File 'lib/ioc_rb/const_loaders/native.rb', line 3

def self.load_const(const_name)
  const_name.split('::').inject(Object) do |mod, const_part|
    mod.const_get(const_part)
  end
end