Module: Kind::Nil
- Defined in:
- lib/kind/objects/nil.rb
Class Method Summary collapse
Class Method Details
.===(value) ⇒ Object
13 14 15 |
# File 'lib/kind/objects/nil.rb', line 13 def self.===(value) value.nil? end |
.name ⇒ Object
9 10 11 |
# File 'lib/kind/objects/nil.rb', line 9 def self.name 'nil' end |
.|(another_kind) ⇒ Object
5 6 7 |
# File 'lib/kind/objects/nil.rb', line 5 def self.|(another_kind) UnionType[self] | another_kind end |