2008-08-12 rubyのnilはオブジェクトです。 Ruby rubyのnilはオブジェクトです。なのでObjectのAPIが使えます。 puts nil.to_s puts nil.object_id puts nil.hash 実行結果です。 4 4