Class: Trax::Core::Types::Set

Inherits:
ValueObject show all
Defined in:
lib/trax/core/types/set.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ValueObject

#__getobj__, #nil?, symbolic_name, to_schema, to_sym

Constructor Details

#initialize(*args) ⇒ Set

Returns a new instance of Set.



5
6
7
# File 'lib/trax/core/types/set.rb', line 5

def initialize(*args)
  super(::Set[*args.flatten])
end

Class Method Details

.typeObject



9
10
11
# File 'lib/trax/core/types/set.rb', line 9

def self.type
  :set
end