Method: NilClass#rationalize
- Defined in:
- rational.c
permalink #rationalize([eps]) ⇒ Object
Returns zero as a rational. The optional argument eps
is always ignored.
2141 2142 2143 2144 2145 2146 |
# File 'rational.c', line 2141 static VALUE nilclass_rationalize(int argc, VALUE *argv, VALUE self) { rb_check_arity(argc, 0, 1); return nilclass_to_r(self); } |