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

instance method NilClass#to_r

to_r -> Rational[permalink][rdoc]

0/1 を返します。



nil.to_r # => (0/1)