monkey-lib 0.3.5.2 → 0.3.5.3
Sign up to get free protection for your applications and to get access to all the features.
- 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}"
|