class Sift::SubsetComparator
Public Class Methods
new(array)
click to toggle source
# File lib/sift/subset_comparator.rb, line 3 def initialize(array) @array = array end
Public Instance Methods
include?(other)
click to toggle source
# File lib/sift/subset_comparator.rb, line 7 def include?(other) other = [other] unless other.is_a?(Array) @array.to_set >= other.to_set end