method
rationalize
ruby latest stable - Class:
Integer
rationalize(p1 = v1)public
Returns the value as a rational. The optional argument eps is always ignored.
static VALUE
integer_rationalize(int argc, VALUE *argv, VALUE self)
{
rb_scan_args(argc, argv, "01", NULL);
return integer_to_r(self);
}