Sha256: c1129fdad1368c61ab595b935191dd677bc9444bb6e0f311422193dcea2e4be3

Contents?: true

Size: 376 Bytes

Versions: 1

Compression:

Stored size: 376 Bytes

Contents

require 'dry/types/constructor'

module Dry
  module Types
    class Hash < Nominal
      class Constructor < ::Dry::Types::Constructor
        # @api private
        def constructor_type
          ::Dry::Types::Hash::Constructor
        end

        private

        def composable?(value)
          super && !value.is_a?(Schema::Key)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dry-types-0.15.0 lib/dry/types/hash/constructor.rb