class SyntaxTree::Reflection::Type::TupleType
Represents a tuple type that holds a number of types in order.
def ===(value)
def ===(value) value.is_a?(Array) && value.length == types.length && value.zip(types).all? { |item, type| type === item } end
def initialize(types)
def initialize(types) @types = types end
def inspect
def inspect "[#{types.map(&:inspect).join(", ")}]" end