The class of the singleton object nil.
nil
nil.inspect â "nil" Instance Public methods Always returns the string ânilâ
nil.to_f â 0.0 Instance Public methods Always returns zero.
nil.to_s â "" Instance Public methods Always returns the empty string.
false & obj â falsenil & obj â false Instance Public methods AndâReturns
nil?() Instance Public methods call_seq:
nil.to_r â (0/1) Instance Public methods Returns zero as a rational.
false | obj â true or falsenil | obj â true or false Instance Public methods
nil.to_i â 0 Instance Public methods Always returns zero.
nil.to_a â [] Instance Public methods Always returns an empty array.
nil.to_h â {} Instance Public methods Always returns an empty hash.
Page 1 of 2