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.
28 29 30 |
# File 'lib/crystalline/types.rb', line 28 def initialize(*types) @types = types end |
Instance Attribute Details
#types ⇒ Object
Returns the value of attribute types.
26 27 28 |
# File 'lib/crystalline/types.rb', line 26 def types @types end |