Class: Set
Instance Method Summary collapse
Instance Method Details
#not_subset?(set) ⇒ Boolean
2 3 4 5 6 |
# File 'lib/core_utilities/core_ext/set.rb', line 2 def not_subset?(set) set.is_a?(Set) or raise ArgumentError, "value must be a set" return true if set.size > size any? { |o| !set.include?(o) } end |