Actions
Bug #10180
closed#to_hash vs. #to_h
Description
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.
Actions
Like0
Like0