Sha256: 698c2784ba8225c76ecdf115845f837c0e02abaeb15b8d53bf6502418541fde9

Contents?: true

Size: 296 Bytes

Versions: 11

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true

module Kind
  module Set
    extend self, ::Kind::Object

    def kind; ::Set; end

    def value_or_empty(arg)
      KIND.value(self, arg, Empty::SET)
    end

    alias empty_or value_or_empty
  end

  def self.Set?(*values)
    KIND.of?(::Set, values)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kind-5.10.0 lib/kind/objects/modules/stdlib/set.rb
kind-5.9.0 lib/kind/objects/modules/stdlib/set.rb
kind-5.8.1 lib/kind/objects/modules/stdlib/set.rb
kind-5.8.0 lib/kind/objects/modules/stdlib/set.rb
kind-5.7.0 lib/kind/objects/modules/stdlib/set.rb
kind-5.6.0 lib/kind/objects/modules/stdlib/set.rb
kind-5.5.0 lib/kind/objects/modules/stdlib/set.rb
kind-5.4.1 lib/kind/objects/modules/stdlib/set.rb
kind-5.4.0 lib/kind/objects/modules/stdlib/set.rb
kind-5.3.0 lib/kind/objects/modules/stdlib/set.rb
kind-5.2.0 lib/kind/objects/modules/stdlib/set.rb