Class: Crystalline::Union

Inherits:
Object
  • Object
show all
Defined in:
lib/crystalline/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typesObject

Returns the value of attribute types.



25
26
27
# File 'lib/crystalline/types.rb', line 25

def types
  @types
end