APIdock
/
Ruby
/
Browse
About
method
to_i
ruby 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?
rationalize
to_a
to_c
to_f
to_h
to_i
to_r
to_s
|