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.



29
30
31
# File 'lib/crystalline/types.rb', line 29

def initialize(*types)
  @types = types
end

Instance Attribute Details

#typesObject

Returns the value of attribute types.



27
28
29
# File 'lib/crystalline/types.rb', line 27

def types
  @types
end