Sha256: 94c1af3d7b07e3d04b44b762e3af24d5578b6e34be91026fc0e15b5f3128f009
Contents?: true
Size: 482 Bytes
Versions: 4
Compression:
Stored size: 482 Bytes
Contents
module Yoda module Typing module Types class Tuple < Base # @return [Array<Base>] attr_reader :types # @param types [Array<Base>] def initialize(*types) @types = types end def to_expression Model::TypeExpressions::InstanceType.new('Array') end def to_type_string inner = types.map(&:to_type_string) "(#{inner.join(', ')})" end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems