class Array def contains?(other) (self & other) == other ; end end