Skip to content
Browse files

Adding RubyBoolean's annotated methods.

Annotated methods on RubyBoolean were not being added to the ruby class, just
the static methods in RubyBoolean.True and RubyBoolean.False. Now hash is
actually defined on the ruby TrueClass and FalseClass.
  • Loading branch information...
1 parent e96b458 commit 7871de38886cc8c517c5102cdd0141f2065e32e8 @rdblue committed Apr 14, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/org/jruby/RubyBoolean.java
View
2 src/org/jruby/RubyBoolean.java
@@ -92,6 +92,7 @@ public static RubyClass createFalseClass(Ruby runtime) {
falseClass.setReifiedClass(RubyBoolean.class);
falseClass.defineAnnotatedMethods(False.class);
+ falseClass.defineAnnotatedMethods(RubyBoolean.class);
falseClass.getMetaClass().undefineMethod("new");
@@ -105,6 +106,7 @@ public static RubyClass createTrueClass(Ruby runtime) {
trueClass.setReifiedClass(RubyBoolean.class);
trueClass.defineAnnotatedMethods(True.class);
+ trueClass.defineAnnotatedMethods(RubyBoolean.class);
trueClass.getMetaClass().undefineMethod("new");

0 comments on commit 7871de3

Please sign in to comment.
Something went wrong with that request. Please try again.