Module: T::Tuple
- Defined in:
- lib/easy_talk/types/tuple.rb
Overview
Provides tuple type syntax: T::Tuple[Type1, Type2, ...]
Creates a tuple type that validates array elements by position.
Class Method Summary collapse
-
.[](*types) ⇒ EasyTalk::Types::Tuple
Creates a new Tuple type with the given positional types.
Class Method Details
.[](*types) ⇒ EasyTalk::Types::Tuple
Creates a new Tuple type with the given positional types.
73 74 75 |
# File 'lib/easy_talk/types/tuple.rb', line 73 def self.[](*types) EasyTalk::Types::Tuple.new(*types) end |