Module: Kind::Array

Extended by:
Array, Object
Included in:
Array
Defined in:
lib/kind/objects/modules/core/array.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/array.rb', line 7

def kind; ::Array; end

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



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

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