Module: Dry::Types::BuilderMethods

Defined in:
lib/dry/types/tuple.rb

Instance Method Summary collapse

Instance Method Details

#Tuple(*fixed_types, rest_type) ⇒ Dry::Types::Tuple

Build a tuple type.

Parameters:

  • fixed_types (Array<Dry::Types::Type>)
  • rest_type (Array(Dry::Types::Type))

Returns:

See Also:

  • Tuple#build


197
198
199
# File 'lib/dry/types/tuple.rb', line 197

def Tuple(*types)
  Tuple.build(*types)
end