instance method
Numeric#div
(::Numeric) -> ::Integer
div(other) → integer
numeric.c
View on GitHub ↗
static VALUE
num_div(VALUE x, VALUE y)
{
if (rb_equal(INT2FIX(0), y)) rb_num_zerodiv();
return rb_funcall(num_funcall1(x, '/', y), rb_intern("floor"), 0);
}