Class: Module

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

Direct Known Subclasses

LazyModule

Instance Method Summary collapse

Instance Method Details

#find_const(const_name) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/extlib/module.rb', line 6

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

#try_dupObject



14
15
16
# File 'lib/extlib/module.rb', line 14

def try_dup
  self
end