Class: Module::CompositeType

Inherits:
Module
  • Object
show all
Defined in:
lib/typed_attr/composite_type.rb

Instance Method Summary collapse

Methods inherited from Module

#&, #of, #with, #|, #~@

Constructor Details

#initialize(a, b = nil) ⇒ CompositeType

Returns a new instance of CompositeType.



3
4
5
6
# File 'lib/typed_attr/composite_type.rb', line 3

def initialize a, b = nil
  @a = a
  @b = b
end

Instance Method Details

#_aObject



7
# File 'lib/typed_attr/composite_type.rb', line 7

def _a; @a; end

#_bObject



8
# File 'lib/typed_attr/composite_type.rb', line 8

def _b; @b; end