rubymirrors 0.0.2 → 0.0.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/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