Sha256: ae87c42b94b47b558beebcfa4ea1da1fc1792d4f67628246cbe451329e88727e

Contents?: true

Size: 403 Bytes

Versions: 27

Compression:

Stored size: 403 Bytes

Contents

module Foobara
  module TypeDeclarations
    module Handlers
      class ExtendTupleTypeDeclaration < ExtendAssociativeArrayTypeDeclaration
        def applicable?(sugary_type_declaration)
          strictish_type_declaration = desugarize(sugary_type_declaration)

          strictish_type_declaration.is_a?(::Hash) && strictish_type_declaration[:type] == :tuple
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
foobara-0.0.7 projects/type_declarations/src/handlers/extend_tuple_type_declaration.rb
foobara-0.0.6 projects/type_declarations/src/handlers/extend_tuple_type_declaration.rb
foobara-0.0.5 projects/type_declarations/src/handlers/extend_tuple_type_declaration.rb
foobara-0.0.4 projects/type_declarations/src/handlers/extend_tuple_type_declaration.rb
foobara-0.0.3 projects/type_declarations/src/handlers/extend_tuple_type_declaration.rb
foobara-0.0.2 projects/type_declarations/src/handlers/extend_tuple_type_declaration.rb
foobara-0.0.1 projects/type_declarations/src/handlers/extend_tuple_type_declaration.rb