Sha256: 5f3881a7e42fbfe934cfaec092941a0651b52a0f019ba66e2eeaa172f49d7227
Contents?: true
Size: 970 Bytes
Versions: 26
Compression:
Stored size: 970 Bytes
Contents
Foobara.require_project_file("type_declarations", "handlers/registered_type_declaration/to_type_transformer") Foobara.require_project_file("type_declarations", "handlers/extend_associative_array_type_declaration") module Foobara module TypeDeclarations module Handlers class ExtendTupleTypeDeclaration < ExtendAssociativeArrayTypeDeclaration class ToTypeTransformer < ExtendAssociativeArrayTypeDeclaration::ToTypeTransformer def transform(strict_type_declaration) super.tap do |type| element_type_declarations = type.declaration_data[:element_type_declarations] if element_type_declarations && !element_type_declarations.empty? type.element_types = element_type_declarations.map do |element_type_declaration| type_for_declaration(element_type_declaration) end end end end end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems