Example #1
0
 // c: random_equal
 @Deprecated
 @Override
 @JRubyMethod(name = "==", required = 1)
 public IRubyObject op_equal_19(ThreadContext context, IRubyObject obj) {
   if (!getType().equals(obj.getType())) {
     return context.runtime.getFalse();
   }
   return context.runtime.newBoolean(random.equals(((RubyRandom) obj).random));
 }