rubymirrors 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ruby/reflection/class_mirror.rb +4 -1
- data/rubymirrors.gemspec +1 -1
- metadata +1 -1
@@ -72,7 +72,10 @@ module Ruby
|
|
72
72
|
|
73
73
|
def nested_classes
|
74
74
|
nc = @subject.constants.collect do |c|
|
75
|
-
|
75
|
+
# do not trigger autoloads
|
76
|
+
if @subject.const_defined?(c) and not @subject.autoload?(c)
|
77
|
+
@subject.const_get(c)
|
78
|
+
end
|
76
79
|
end.compact.select {|c| Module === c }
|
77
80
|
mirrors nc
|
78
81
|
end
|
data/rubymirrors.gemspec
CHANGED