Class: Module::CompositeType
- Defined in:
- lib/typed_attr/composite_type.rb
Direct Known Subclasses
ConjunctiveType, ContainerType, DisjunctiveType, NegativeType, PairType
Instance Method Summary collapse
- #_a ⇒ Object
- #_b ⇒ Object
-
#initialize(a, b = nil) ⇒ CompositeType
constructor
A new instance of CompositeType.
Methods inherited from Module
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
#_a ⇒ Object
7 |
# File 'lib/typed_attr/composite_type.rb', line 7 def _a; @a; end |
#_b ⇒ Object
8 |
# File 'lib/typed_attr/composite_type.rb', line 8 def _b; @b; end |