I am a novice in Ruby. I want to change the value of hash associated
with a particular key.
H = Hash[“a” => 100, “b” => 200]
I want the value associated with a=>300 and this change should be
permanent.
Please give the methods except
hash.[key]=value