public final IRubyObject yield(ThreadContext context, Block block, IRubyObject value) { if (canCallDirect()) { return yieldDirect(context, block, new IRubyObject[] { value }, null); } else { return doYield(context, block, value); } }
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0) { if (canCallDirect()) { return yieldDirect(context, block, new IRubyObject[] { arg0 }, null); } else { return yield(context, block, arg0); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) {
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { if (canCallDirect()) { return yieldDirect(context, block, new IRubyObject[] { arg0, arg1, arg2 }, null); } else { return yield(context, block, new IRubyObject[] { arg0, arg1, arg2 }, null); } }
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { if (canCallDirect()) { return yieldDirect(context, block, new IRubyObject[] { arg0, arg1, arg2 }, null); } else { return yield(context, block, new IRubyObject[] { arg0, arg1, arg2 }, null); } }
public IRubyObject yieldSpecific(ThreadContext context, Block block) { if (canCallDirect()) { return yieldDirect(context, block, null, null); } else { return yield(context, block, null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0) {
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0) { if (canCallDirect()) { return yieldDirect(context, block, new IRubyObject[] { arg0 }, null); } else { return yield(context, block, arg0); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) {
public IRubyObject yieldSpecific(ThreadContext context, Block block) { if (canCallDirect()) { return yieldDirect(context, block, null, null); } else { return yield(context, block, null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0) {
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) { if (canCallDirect()) { return yieldDirect(context, block, new IRubyObject[] { arg0, arg1 }, null); } else { return yield(context, block, new IRubyObject[] { arg0, arg1 }, null); } } public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) {
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[] 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 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 final IRubyObject yield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self) { if (canCallDirect()) { return yieldDirect(context, block, args, self); } else { IRubyObject[] preppedValue = RubyProc.prepareArgs(context, block.type, this, args); return doYield(context, block, preppedValue, self); } }
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 = 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); } }