Class: Crystalline::Union
- Inherits:
-
Object
- Object
- Crystalline::Union
- Defined in:
- lib/crystalline/types.rb
Instance Attribute Summary collapse
-
#types ⇒ Object
Returns the value of attribute types.
Instance Method Summary collapse
-
#initialize(*types) ⇒ Union
constructor
A new instance of Union.
Constructor Details
#initialize(*types) ⇒ Union
Returns a new instance of Union.
27 28 29 |
# File 'lib/crystalline/types.rb', line 27 def initialize(*types) @types = types end |
Instance Attribute Details
#types ⇒ Object
Returns the value of attribute types.
25 26 27 |
# File 'lib/crystalline/types.rb', line 25 def types @types end |