Method: RBI::Type.tuple

Defined in:
lib/rbi/type.rb

.tuple(*types) ⇒ Object

Builds a type that represents a tuple type like ‘[String, Integer]`. : (*(Type | Array) types) -> Tuple



665
666
667
# File 'lib/rbi/type.rb', line 665

def tuple(*types)
  Tuple.new(types.flatten)
end