@Override @JRubyMethod(name = "==") public RubyBoolean op_equal(ThreadContext context, IRubyObject other) { if ( other instanceof RubyArray ) { // we respond_to? to_ary thus shall handle [1].to_java == [1] return context.runtime.newBoolean( equalsRubyArray((RubyArray) other) ); } return eql_p(context, other); }
@Override @JRubyMethod(name = "==") public RubyBoolean op_equal(ThreadContext context, IRubyObject other) { if ( other instanceof RubyArray ) { // we respond_to? to_ary thus shall handle [1].to_java == [1] return context.runtime.newBoolean( equalsRubyArray((RubyArray) other) ); } return eql_p(context, other); }