Store new value a hash : store « Hash « Ruby






Store new value a hash


myHash = { 1 => "One", 2 => "Two", 3 => "Three", 4 => "Four", 5 => "Five" }


myHash.store(6, "Six")

 

Related examples in the same category