From: herwin@... Date: 2014-08-28T10:54:23+00:00 Subject: [ruby-core:64605] [ruby-trunk - Bug #10180] [Open] #to_hash vs. #to_h Issue #10180 has been reported by Herwin .. ---------------------------------------- Bug #10180: #to_hash vs. #to_h https://bugs.ruby-lang.org/issues/10180 * Author: Herwin . * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: 2.1.2p95 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- The class Hash has a method try_convert, that is documented as "Try to convert obj into a hash, using #to_hash method." Surpisingly, the Array class doesn't have a method to_hash, but it does have a method to_h which converts it into a Hash. This looks like there are two possible methods with different names, but with the same expected behaviour, which breaks some usage of Hash#try_convert. -- https://bugs.ruby-lang.org/