lib/dry/schema/extensions/hints/message_compiler_methods.rb in dry-schema-0.6.0 vs lib/dry/schema/extensions/hints/message_compiler_methods.rb in dry-schema-1.0.0
- old
+ new
@@ -2,19 +2,24 @@
module Dry
module Schema
module Extensions
module Hints
+ # Adds support for processing [:hint, ...] nodes produced by dry-logic
+ #
+ # @api private
module MessageCompilerMethods
HINT_TYPE_EXCLUSION = %i[
key? nil? bool? str? int? float? decimal?
date? date_time? time? hash? array?
].freeze
HINT_OTHER_EXCLUSION = %i[format? filled?].freeze
+ # @api private
attr_reader :hints
+ # @api private
def initialize(*args)
super
@hints = @options.fetch(:hints, true)
end