@Override public IRubyObject op_mod(ThreadContext context, long other) { return moduloFixnum(context, other); }
private IRubyObject moduloFixnum(ThreadContext context, RubyFixnum other) { return moduloFixnum(context, other.value); }
private IRubyObject moduloFixnum(ThreadContext context, RubyFixnum other) { return moduloFixnum(context, other.value); }
@Override public IRubyObject op_mod(ThreadContext context, long other) { return moduloFixnum(context, other); }
public IRubyObject op_mod(ThreadContext context, long other) { return moduloFixnum(context, other); }
private IRubyObject moduloFixnum(ThreadContext context, RubyFixnum other) { return moduloFixnum(context, other.value); }
public IRubyObject op_mod(ThreadContext context, long other) { return moduloFixnum(context, other); }
private IRubyObject moduloFixnum(ThreadContext context, RubyFixnum other) { return moduloFixnum(context, other.value); }
/** fix_mod * */ @Override public IRubyObject op_mod(ThreadContext context, IRubyObject other) { checkZeroDivisionError(context, other); if (other instanceof RubyFixnum) { return moduloFixnum(context, (RubyFixnum) other); } return coerceBin(context, sites(context).op_mod, other); }
/** fix_mod * */ @Override public IRubyObject op_mod(ThreadContext context, IRubyObject other) { checkZeroDivisionError(context, other); if (other instanceof RubyFixnum) { return moduloFixnum(context, (RubyFixnum) other); } return coerceBin(context, sites(context).op_mod, other); }
/** fix_mod * */ @JRubyMethod(name = {"%", "modulo"}) public IRubyObject op_mod(ThreadContext context, IRubyObject other) { if (context.runtime.is1_9()) checkZeroDivisionError(context, other); if (other instanceof RubyFixnum) { return moduloFixnum(context, (RubyFixnum)other); } return coerceBin(context, "%", other); }
/** fix_mod * */ @JRubyMethod(name = {"%", "modulo"}) public IRubyObject op_mod(ThreadContext context, IRubyObject other) { if (context.runtime.is1_9()) checkZeroDivisionError(context, other); if (other instanceof RubyFixnum) { return moduloFixnum(context, (RubyFixnum)other); } return coerceBin(context, "%", other); }