@JRubyMethod(name = "respond_to?", frame = true) public IRubyObject respond_to(ThreadContext context, IRubyObject name, IRubyObject includePrivate) { if (name.asJavaString().equals("path")) { return sites(context).reader_respond_to.call(context, this, this.realIo, name, includePrivate); } return Helpers.invokeSuper(context, this, name, Block.NULL_BLOCK); }
@JRubyMethod(name = "respond_to?", frame = true) public IRubyObject respond_to(ThreadContext context, IRubyObject name) { if (name.asJavaString().equals("path")) { return sites(context).reader_respond_to.call(context, this, this.realIo, name); } return Helpers.invokeSuper(context, this, name, Block.NULL_BLOCK); }
@JRubyMethod(name = "respond_to?", frame = true) public IRubyObject respond_to(ThreadContext context, IRubyObject name) { if (name.asJavaString().equals("path")) { return sites(context).reader_respond_to.call(context, this, this.realIo, name); } return Helpers.invokeSuper(context, this, name, Block.NULL_BLOCK); }
@JRubyMethod(name = "respond_to?", frame = true) public IRubyObject respond_to(ThreadContext context, IRubyObject name, IRubyObject includePrivate) { if (name.asJavaString().equals("path")) { return sites(context).reader_respond_to.call(context, this, this.realIo, name, includePrivate); } return Helpers.invokeSuper(context, this, name, Block.NULL_BLOCK); }