delete(key) -> object | nil
[permalink][rdoc]delete(key) {|key| ... } -> object
key に対応する要素を取り除きます。
h = {:ab => "some" , :cd => "all"} p h.delete(:ab) #=> "some" p h.delete(:ef) #=> nil p h.delete(:ef){|key|"#{key} Nothing"} #=> "ef Nothing" p h #=> {:cd=>"all"}
[SEE_ALSO] Hash#delete_if