proper_subset?(set)
public
Returns true if the set is a proper subset of the given set.
Show source
def proper_subset?(set)
set.is_a?(Set) or raise ArgumentError, "value must be a set"
return false if set.size <= size
all? { |o| set.include?(o) }
end