@JRubyMethod public IRubyObject fill(ThreadContext context, IRubyObject arg1, IRubyObject arg2, Block block) { if (block.isGiven()) { int beg; return fillCommon(context, beg = fillBegin(arg1), fillLen(beg, arg2), block); } else { if (arg2 instanceof RubyRange) { int[] beglen = ((RubyRange) arg2).begLenInt(realLength, 1); return fillCommon(context, beglen[0], beglen[1], arg1); } int beg; return fillCommon(context, beg = fillBegin(arg2), fillLen(beg, null), arg1); } }
@JRubyMethod public IRubyObject fill(ThreadContext context, IRubyObject arg1, IRubyObject arg2, Block block) { if (block.isGiven()) { int beg; return fillCommon(context, beg = fillBegin(arg1), fillLen(beg, arg2), block); } else { if (arg2 instanceof RubyRange) { int[] beglen = ((RubyRange) arg2).begLenInt(realLength, 1); return fillCommon(context, beglen[0], beglen[1], arg1); } int beg; return fillCommon(context, beg = fillBegin(arg2), fillLen(beg, null), arg1); } }
@JRubyMethod public IRubyObject fill(ThreadContext context, IRubyObject arg1, IRubyObject arg2, Block block) { if (block.isGiven()) { int beg; return fillCommon(context, beg = fillBegin(arg1), fillLen(beg, arg2), block); } else { if (arg2 instanceof RubyRange) { int[] beglen = ((RubyRange) arg2).begLenInt(realLength, 1); return fillCommon(context, beglen[0], beglen[1], arg1); } int beg; return fillCommon(context, beg = fillBegin(arg2), fillLen(beg, null), arg1); } }
@JRubyMethod public IRubyObject fill(ThreadContext context, IRubyObject arg1, IRubyObject arg2, Block block) { if (block.isGiven()) { int beg; return fillCommon(context, beg = fillBegin(arg1), fillLen(beg, arg2), block); } else { if (arg2 instanceof RubyRange) { int[] beglen = ((RubyRange) arg2).begLenInt(realLength, 1); return fillCommon(context, beglen[0], beglen[1], arg1); } int beg; return fillCommon(context, beg = fillBegin(arg2), fillLen(beg, null), arg1); } }
@JRubyMethod public IRubyObject fill(ThreadContext context, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block) { if (block.isGiven()) { throw context.runtime.newArgumentError(3, 2); } else { int beg; return fillCommon(context, beg = fillBegin(arg2), fillLen(beg, arg3), arg1); } }
@JRubyMethod public IRubyObject fill(ThreadContext context, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block) { if (block.isGiven()) { throw context.runtime.newArgumentError(3, 2); } else { int beg; return fillCommon(context, beg = fillBegin(arg2), fillLen(beg, arg3), arg1); } }
@JRubyMethod public IRubyObject fill(ThreadContext context, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block) { if (block.isGiven()) { throw context.runtime.newArgumentError(3, 2); } else { int beg; return fillCommon(context, beg = fillBegin(arg2), fillLen(beg, arg3), arg1); } }
@JRubyMethod public IRubyObject fill(ThreadContext context, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block) { if (block.isGiven()) { throw context.runtime.newArgumentError(3, 2); } else { int beg; return fillCommon(context, beg = fillBegin(arg2), fillLen(beg, arg3), arg1); } }
@JRubyMethod public IRubyObject fill(ThreadContext context, IRubyObject arg, Block block) { if (block.isGiven()) { if (arg instanceof RubyRange) { int[] beglen = ((RubyRange) arg).begLenInt(realLength, 1); return fillCommon(context, beglen[0], beglen[1], block); } int beg; return fillCommon(context, beg = fillBegin(arg), fillLen(beg, null), block); } else { return fillCommon(context, 0, realLength, arg); } }
@JRubyMethod public IRubyObject fill(ThreadContext context, IRubyObject arg, Block block) { if (block.isGiven()) { if (arg instanceof RubyRange) { int[] beglen = ((RubyRange) arg).begLenInt(realLength, 1); return fillCommon(context, beglen[0], beglen[1], block); } int beg; return fillCommon(context, beg = fillBegin(arg), fillLen(beg, null), block); } else { return fillCommon(context, 0, realLength, arg); } }
@JRubyMethod public IRubyObject fill(ThreadContext context, IRubyObject arg, Block block) { if (block.isGiven()) { if (arg instanceof RubyRange) { int[] beglen = ((RubyRange) arg).begLenInt(realLength, 1); return fillCommon(context, beglen[0], beglen[1], block); } int beg; return fillCommon(context, beg = fillBegin(arg), fillLen(beg, null), block); } else { return fillCommon(context, 0, realLength, arg); } }
@JRubyMethod public IRubyObject fill(ThreadContext context, IRubyObject arg, Block block) { if (block.isGiven()) { if (arg instanceof RubyRange) { int[] beglen = ((RubyRange) arg).begLenInt(realLength, 1); return fillCommon(context, beglen[0], beglen[1], block); } int beg; return fillCommon(context, beg = fillBegin(arg), fillLen(beg, null), block); } else { return fillCommon(context, 0, realLength, arg); } }