If your hash is called, for example, the hshApple array can be accessed via hsh["Apple"]. You can use this as any variable, so adding a value to this array is simple hsh["Apple"] << some_value. For example:
irb> hsh = { "Apple" => [1, 5.99], "Banana" => [5, 9.99] }
irb> hsh["Apple"] << 9999
=> { "Apple" => [1, 5.99, 9999], "Banana" => [5, 9.99] }
source
share