key/value の有無を確認
Top > Ruby [2.2.2] > Hash( key? , value? )
hash = {:acha=>1, :porute=>2, :piipo=>30} p hash.key? :acha # true p hash.key? :porute # true p hash.key? :pipo # false p hash.value? 1 # true p hash.value? 2 # true p hash.value? 30 # false