Sha256: df0cda4afbae06e18ccea850c7b03a97a3ec7274c08a288d8a8a874f62230c78

Contents?: true

Size: 364 Bytes

Versions: 15

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

require 'dry/schema/macros/schema'

module Dry
  module Schema
    module Macros
      # Macro used to specify a nested schema
      #
      # @api private
      class Hash < Schema
        # @api private
        def call(*args, &block)
          trace << hash?
          super(*args, &block)
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dry-schema-1.4.3 lib/dry/schema/macros/hash.rb
dry-schema-1.4.2 lib/dry/schema/macros/hash.rb
dry-schema-1.4.1 lib/dry/schema/macros/hash.rb
dry-schema-1.4.0 lib/dry/schema/macros/hash.rb
dry-schema-1.3.4 lib/dry/schema/macros/hash.rb
dry-schema-1.3.3 lib/dry/schema/macros/hash.rb
dry-schema-1.3.2 lib/dry/schema/macros/hash.rb
dry-schema-1.3.1 lib/dry/schema/macros/hash.rb
dry-schema-1.3.0 lib/dry/schema/macros/hash.rb
dry-schema-1.2.0 lib/dry/schema/macros/hash.rb
dry-schema-1.1.0 lib/dry/schema/macros/hash.rb
dry-schema-1.0.3 lib/dry/schema/macros/hash.rb
dry-schema-1.0.2 lib/dry/schema/macros/hash.rb
dry-schema-1.0.1 lib/dry/schema/macros/hash.rb
dry-schema-1.0.0 lib/dry/schema/macros/hash.rb