Sha256: 6985b9c2884e5c8bbc89284c7b8f547a45287233ae012d3f150dafb731617d42
Contents?: true
Size: 466 Bytes
Versions: 3
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true require "dry/schema/config" require "dry/validation/macros" module Dry module Validation # Configuration for contracts # # @see Contract#config # # @api public class Config < Schema::Config setting :macros, default: Macros::Container.new, constructor: :dup.to_proc # @api private def dup config = super config.macros = macros.dup config end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dry-validation-1.8.1 | lib/dry/validation/config.rb |
dry-validation-1.8.0 | lib/dry/validation/config.rb |
dry-validation-1.7.0 | lib/dry/validation/config.rb |