APIdock
/
Ruby
/
Browse
About
method
to_i
v1_9_1_378
-
Show latest stable
- Class:
NilClass
to_i
()
public
Always returns zero.
nil
.
to_i
#=> 0
Show source
static VALUE nil_to_i(VALUE obj) { return INT2FIX(0); }
Related methods
Instance methods
&
^
inspect
nil?
to_a
to_c
to_f
to_i
to_r
to_s
to_yaml
|