Class: Module

Inherits:
Object show all
Defined in:
lib/extlib/module.rb

Instance Method Summary collapse

Instance Method Details

#find_const(const_name) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/extlib/module.rb', line 2

def find_const(const_name)
  if const_name[0..1] == '::'
    Object.find_const(const_name[2..-1])
  else
    nested_const_lookup(const_name)
  end
end