アウトプットができる技術者に

it's a time to take a new step !

Hash

summary
  • Hash
生成1
hash = {"app"=>100,"win"=>50}
p hash["app"]
p hash["win"]
100
50
生成2
h = Hash.new
h["app"] = 10
p h["app"]
10
要素の追加
hash = {"app"=>100,"win"=>50}
hash["mic"] = 10

p hash["app"]
p hash["win"]
p hash["mic"]
100
50
10