Sha256: 9e862e552c25de0f4736adf4ec717bcd4b491600ff9d75bdcc5497a5b42c255c

Contents?: true

Size: 354 Bytes

Versions: 50

Compression:

Stored size: 354 Bytes

Contents

# frozen_string_literal: true

module Dry
  module Schema
    module Extensions
      module Hints
        # Tweaks AND visitor to enable :hints
        #
        # @api private
        module CompilerMethods
          # @api private
          def visit_and(node)
            super.with(hints: true)
          end
        end
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
dry-schema-1.7.1 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.7.0 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.6.2 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.6.1 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.6.0 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.5.6 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.5.5 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.5.4 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.5.3 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.5.2 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.5.1 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.5.0 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.4.3 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.4.2 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.4.1 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.4.0 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.3.4 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.3.3 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.3.2 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.3.1 lib/dry/schema/extensions/hints/compiler_methods.rb