/** * MRI: rb_int_idiv and overrides */ public IRubyObject idiv(ThreadContext context, IRubyObject other) { return div(context, other); }
/** * MRI: rb_int_idiv and overrides */ public IRubyObject idiv(ThreadContext context, IRubyObject other) { return div(context, other); }
@Deprecated public final IRubyObject div19(ThreadContext context, IRubyObject other) { return div(context, other); }
@Deprecated public final IRubyObject div19(ThreadContext context, IRubyObject other) { return div(context, other); }
/** num_divmod * */ @JRubyMethod(name = "divmod") public IRubyObject divmod(ThreadContext context, IRubyObject other) { return RubyArray.newArray(context.runtime, div(context, other), modulo(context, other)); }
/** num_divmod * */ @JRubyMethod(name = "divmod") public IRubyObject divmod(ThreadContext context, IRubyObject other) { return RubyArray.newArray(context.runtime, div(context, other), modulo(context, other)); }
protected static boolean int_half_p_half_even(ThreadContext context, RubyInteger num, RubyNumeric n, IRubyObject f) { return n.div(context, f).convertToInteger().odd_p(context).isTrue(); }
protected static boolean int_half_p_half_even(ThreadContext context, RubyInteger num, RubyNumeric n, IRubyObject f) { return n.div(context, f).convertToInteger().odd_p(context).isTrue(); }
/** num_divmod * */ @JRubyMethod(name = "divmod", compat = RUBY1_8) public IRubyObject divmod(ThreadContext context, IRubyObject other) { return RubyArray.newArray(getRuntime(), div(context, other), modulo(context, other)); }
/** num_divmod * */ @JRubyMethod(name = "divmod", compat = RUBY1_9) public IRubyObject divmod19(ThreadContext context, IRubyObject other) { return RubyArray.newArray(getRuntime(), div(context, other), modulo19(context, other)); }
/** num_divmod * */ @JRubyMethod(name = "divmod", compat = RUBY1_9) public IRubyObject divmod19(ThreadContext context, IRubyObject other) { return RubyArray.newArray(getRuntime(), div(context, other), modulo19(context, other)); }
/** num_divmod * */ @JRubyMethod(name = "divmod", compat = RUBY1_8) public IRubyObject divmod(ThreadContext context, IRubyObject other) { return RubyArray.newArray(getRuntime(), div(context, other), modulo(context, other)); }