Project

General

Profile

Feature #13045

Updated by ch1c0t (Anatoly Chernow) about 8 years ago

To the following method 
 ~~~ ruby 
 def new request:, response: 
 end 
 ~~~ 
 I'd like to be able to pass both 
 ~~~ ruby 
 hash_with_symbol_keys = { request: another_hash, response: another_hash2 } 
 hash_with_string_keys = { 'request' => another_hash, 'response' => another_hash2 } 
 ~~~ 

 It I would make a lot cleaner parsing many things returned with string keys(like the output of YAML.load). 

 If you don't like the above feature, could you please at least consider adding Hash#symbolize_keys(like you did with Hash#transform_values)?

Back