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.13.3 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.13.2 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.13.1 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.13.0 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.12.0 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.11.3 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.11.2 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.11.1 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.11.0 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.10.6 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.10.5 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.10.4 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.10.3 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.10.2 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.10.1 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.9.3 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.9.2 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.9.1 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.9.0 lib/dry/schema/extensions/hints/compiler_methods.rb
dry-schema-1.8.0 lib/dry/schema/extensions/hints/compiler_methods.rb