@JRubyMethod(name = "with_index") public IRubyObject with_index(ThreadContext context, IRubyObject arg, final Block block) { return with_index_common(context, block, "with_index", arg); }
@JRubyMethod public IRubyObject each_with_index(ThreadContext context, final Block block) { return with_index_common(context, block, "each_with_index", context.nil); }
@JRubyMethod(name = "with_index") public IRubyObject with_index(ThreadContext context, final Block block) { return with_index_common(context, block, "with_index", context.nil); }
@JRubyMethod(name = "with_index") public IRubyObject with_index(ThreadContext context, IRubyObject arg, final Block block) { return with_index_common(context, block, "with_index", arg); }
@JRubyMethod(name = "with_index", compat = RUBY1_9) public static IRubyObject with_index19(ThreadContext context, IRubyObject self, IRubyObject arg, final Block block) { return with_index_common(context, self, block, "with_index", arg); }
@JRubyMethod public IRubyObject each_with_index(ThreadContext context, final Block block) { return with_index_common(context, block, "each_with_index", context.nil); }
@JRubyMethod(name = "with_index") public IRubyObject with_index(ThreadContext context, final Block block) { return with_index_common(context, block, "with_index", context.nil); }
@JRubyMethod(name = "with_index", compat = RUBY1_9) public static IRubyObject with_index19(ThreadContext context, IRubyObject self, IRubyObject arg, final Block block) { return with_index_common(context, self, block, "with_index", arg); }
@JRubyMethod public static IRubyObject each_with_index(ThreadContext context, IRubyObject self, final Block block) { return with_index_common(context, self, block, "each_with_index", context.runtime.getNil()); }
@JRubyMethod public static IRubyObject each_with_index(ThreadContext context, IRubyObject self, final Block block) { return with_index_common(context, self, block, "each_with_index", context.runtime.getNil()); }
@JRubyMethod(compat = RUBY1_8) public static IRubyObject with_index(ThreadContext context, IRubyObject self, final Block block) { return with_index_common(context, self, block, "with_index", context.runtime.getNil()); }
@JRubyMethod(compat = RUBY1_8) public static IRubyObject with_index(ThreadContext context, IRubyObject self, final Block block) { return with_index_common(context, self, block, "with_index", context.runtime.getNil()); }
@JRubyMethod(name = "with_index", compat = RUBY1_9) public static IRubyObject with_index19(ThreadContext context, IRubyObject self, final Block block) { return with_index_common(context, self, block, "with_index", context.runtime.getNil()); }
@JRubyMethod(name = "with_index", compat = RUBY1_9) public static IRubyObject with_index19(ThreadContext context, IRubyObject self, final Block block) { return with_index_common(context, self, block, "with_index", context.runtime.getNil()); }