Sha256: 6f39e76b3e8c6ca204dc32484d8c9e0efa8ddd5931ece2c239094e3f7c0c2596

Contents?: true

Size: 263 Bytes

Versions: 4

Compression:

Stored size: 263 Bytes

Contents

# frozen_string_literal: true

module Kind
  module Hash
    extend self, TypeChecker

    def kind; ::Hash; end

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kind-5.1.0 lib/kind/core/type_checkers/ruby/hash.rb
kind-5.0.0 lib/kind/type_checkers/core/hash.rb
kind-4.1.0 lib/kind/type_checkers/core/hash.rb
kind-4.0.0 lib/kind/type_checkers/core/hash.rb