Class: Set

Inherits:
Object show all
Defined in:
lib/core_utilities/core_ext/set.rb

Instance Method Summary collapse

Instance Method Details

#not_subset?(set) ⇒ Boolean

Returns:

  • (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