Class: Module

Inherits:
Object show all
Defined in:
lib/dm-core/core_ext/module.rb,
lib/dm-core/core_ext/try_dup.rb

Instance Method Summary collapse

Instance Method Details

#find_const(const_name) ⇒ Object



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

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



23
24
25
# File 'lib/dm-core/core_ext/try_dup.rb', line 23

def try_dup
  self
end