monkey-lib 0.3.5.2 → 0.3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/monkey/autoloader.rb +1 -0
- metadata +1 -1
data/lib/monkey/autoloader.rb
CHANGED
@@ -10,6 +10,7 @@ module Monkey
|
|
10
10
|
if const_defined? const_name
|
11
11
|
const = const_get const_name
|
12
12
|
const.extend Monkey::Autoloader
|
13
|
+
constants.each { |c| c.extend Monkey::Autoloader if c.is_a? Module and not c.is_a? Monkey::Autoloader }
|
13
14
|
const
|
14
15
|
else
|
15
16
|
warn "expected #{file} to define #{name}::#{const_name}"
|