Module: DataMapper::Ext::Module

Defined in:
lib/dm-core/support/ext/module.rb

Class Method Summary collapse

Class Method Details

.find_const(mod, const_name) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/dm-core/support/ext/module.rb', line 5

def self.find_const(mod, const_name)
  if const_name[0..1] == '::'
    DataMapper::Ext::Object.full_const_get(const_name[2..-1])
  else
    nested_const_lookup(mod, const_name)
  end
end