ハッシュのvalueを順番に処理
Top > Ruby [2.2.2] > Hash( each_value )
hash = {"acha"=>0, :porute=>1, :piipo=>2} hash.each_value{ |value| puts "value -> #{value}" } # value -> 0 # value -> 1 # value -> 2 hash.each_value{ |key, value| puts "key -> #{key} , value -> #{value}" } # key -> 0 , value -> # key -> 1 , value -> # key -> 2 , value ->