Sha256: 585293e0b93ae6122e5b6c18e04bd1b97f539e3d6e5b86655a57d1e0411d855a

Contents?: true

Size: 176 Bytes

Versions: 5

Compression:

Stored size: 176 Bytes

Contents

class Set
  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.exclude?(o) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
justools-1.2.4 lib/justools/core_ext/set.rb
justools-1.2.3 lib/justools/core_ext/set.rb
justools-1.2.2 lib/justools/core_ext/set.rb
justools-1.2.1 lib/justools/core_ext/set.rb
justools-1.2.0 lib/justools/core_ext/set.rb