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 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 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 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); } }