From: Yukihiro Matsumoto Date: 2012-03-17T10:05:50+09:00 Subject: [ruby-core:43363] Re: [ruby-trunk - Feature #5008] Equal rights for Hash (like Array, String, Integer, Float) Hi, In message "Re: [ruby-core:43358] [ruby-trunk - Feature #5008] Equal rights for Hash (like Array, String, Integer, Float)" on Sat, 17 Mar 2012 07:13:17 +0900, Marc-Andre Lafortune writes: |Even if you will not accept Enumerable#to_h, how about `to_h` for Hash, Struct, OpenStruct and NilClass, which do have a natural conversion to a hash? It seems a better idea than adding Enumerable#to_h, except that I am not sure nil.to_h is a good one. matz.