Method: Kind::UnionType#|

Defined in:
lib/kind/objects/union_type.rb

#|(kind) ⇒ Object



18
19
20
# File 'lib/kind/objects/union_type.rb', line 18

def |(kind)
  self.class.new(@kinds + [Interface[kind.nil? ? Kind::Nil : kind]])
end