Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyObjectSpace.java
Original file line number Diff line number Diff line change
@@ -149,7 +149,7 @@ public Object apply(IRubyObject arg1) {
}
return runtime.newFixnum(count);
}
if (args[0].getClass() == MetaClass.class) {
if (rubyClass.getClass() == MetaClass.class) {
// each_object(Cls.singleton_class) is basically a walk of Cls and all descendants of Cls.
// In other words, this is walking all instances of Cls's singleton class and its subclasses.
IRubyObject attached = ((MetaClass) args[0]).getAttached();

0 comments on commit 52cc127

Please sign in to comment.