Method: NilClass#to_c
- Defined in:
- complex.c
#to_c ⇒ Object
Returns zero as a Complex:
nil.to_c # => (0+0i)
1936 1937 1938 1939 1940 |
# File 'complex.c', line 1936 static VALUE nilclass_to_c(VALUE self) { return rb_complex_new1(INT2FIX(0)); } |