Method: Integer#rationalize
- Defined in:
- rational.c
#rationalize([eps]) ⇒ Object
Returns the value as a rational. The optional argument eps is always ignored.
2165 2166 2167 2168 2169 2170 |
# File 'rational.c', line 2165 static VALUE integer_rationalize(int argc, VALUE *argv, VALUE self) { rb_check_arity(argc, 0, 1); return integer_to_r(self); } |