Module: Uinit::Type::Operators

Included in:
Class, Module, Base
Defined in:
lib/uinit/type/operators.rb

Instance Method Summary collapse

Instance Method Details

#&(other) ⇒ Object



6
7
8
# File 'lib/uinit/type/operators.rb', line 6

def &(other)
  Composition[self].add_intersection_composition(other)
end

#|(other) ⇒ Object



10
11
12
# File 'lib/uinit/type/operators.rb', line 10

def |(other)
  Composition[self].add_union_composition(other)
end