Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > NilClassクラス > to_i

instance method NilClass#to_i

to_i -> Fixnum[permalink][rdoc]

0 を返します。