Method: SmartCore::Types::Primitive#|

Defined in:
lib/smart_core/types/primitive.rb

#|(another_primitive) ⇒ SmartCore::Types::Primitive

Parameters:

Returns:

Since:

  • 0.1.0



181
182
183
# File 'lib/smart_core/types/primitive.rb', line 181

def |(another_primitive)
  self.class::SumFactory.create_type([self, another_primitive])
end