my_hash.merge!( { 'X' => value } )
↧
Answer by Matt for Ruby how to add an element to element to hash that returns hash?
↧
my_hash.merge!( { 'X' => value } )