Sha256: 92806e5f9a3dcaeca4a4305dea5a2a92e027e77a777b64ea9342000bc74e5ba8

Contents?: true

Size: 177 Bytes

Versions: 3

Compression:

Stored size: 177 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.include?(o) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
core_utilities-0.1.3 lib/core_utilities/core_ext/set.rb
core_utilities-0.1.1 lib/core_utilities/core_ext/set.rb
core_utilities-0.1.0 lib/core_utilities/core_ext/set.rb