= private = protected
subset?(set)
Returns true if the set is a subset of the given set.
# File lib/set.rb, line 204 def 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