Module: Kind::Hash

Extended by:
Hash, Object
Included in:
Hash
Defined in:
lib/kind/objects/modules/core/hash.rb

Instance Method Summary collapse

Methods included from Object

===, inspect, name

Methods included from UnionType::Buildable

#|

Methods included from Maybe::Buildable

#maybe

Methods included from BasicObject

#[], #or, #or_nil, #or_null, #or_undefined, #value, #value?

Instance Method Details

#kindObject



7
# File 'lib/kind/objects/modules/core/hash.rb', line 7

def kind; ::Hash; end

#value_or_empty(arg) ⇒ Object Also known as: empty_or



9
10
11
# File 'lib/kind/objects/modules/core/hash.rb', line 9

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