I'm looking for a better way to do
if hash.key? :a &&
hash.key? :b &&
hash.key? :c &&
hash.key? :d
preferably something like
hash.includes_keys? [ :a, :b, :c, :d ]
I came up with
hash.keys & [:a, :b, :c, :d] == [:a, :b, :c, :d]
but I dont like having to add the array twice though