Module: Callme::ConstLoaders::Native
- Defined in:
- lib/callme/const_loaders/native.rb
Class Method Summary collapse
Class Method Details
.load_const(const_name) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/callme/const_loaders/native.rb', line 3 def self.load_const(const_name) return const_name if const_name.is_a?(Class) const_name.split('::').inject(Object) do |mod, const_part| mod.const_get(const_part) end end |