public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0) { IRubyObject[] args = new IRubyObject[] {arg0}; if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, Block unusedBlock) {
public IRubyObject call(ThreadContext context, Block block) { IRubyObject[] args = IRubyObject.NULL_ARRAY; if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } }
public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) { IRubyObject[] args = new IRubyObject[] {arg0, arg1}; if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, Block unusedBlock) {
public IRubyObject call(ThreadContext context, Block block, IRubyObject[] args, Block blockArg) { if (canCallDirect()) { return callDirect(context, block, args, blockArg); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null, blockArg); } }
public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { IRubyObject[] args = new IRubyObject[] {arg0, arg1, arg2}; if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block unusedBlock) {
public IRubyObject call(ThreadContext context, Block block) { IRubyObject[] args = IRubyObject.NULL_ARRAY; if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } }
public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { IRubyObject[] args = new IRubyObject[] {arg0, arg1, arg2}; if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block unusedBlock) {
public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0) { IRubyObject[] args = new IRubyObject[] {arg0}; if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, Block unusedBlock) {
public IRubyObject call(ThreadContext context, Block block, IRubyObject[] args) { if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } }
public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) { IRubyObject[] args = new IRubyObject[] {arg0, arg1}; if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, Block unusedBlock) {
public IRubyObject call(ThreadContext context, Block block, IRubyObject[] args) { if (canCallDirect()) { return callDirect(context, block, args, Block.NULL_BLOCK); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null); } }
public IRubyObject call(ThreadContext context, Block block, IRubyObject[] args, Block blockArg) { if (canCallDirect()) { return callDirect(context, block, args, blockArg); } else { return yield(context, block, prepareArgumentsForCall(context, args, block.type), null, blockArg); } }