Sha256: be58abc2f5300667bd39937d6513e3eaaba673ee972f05245d0d74919d9c1220

Contents?: true

Size: 297 Bytes

Versions: 3

Compression:

Stored size: 297 Bytes

Contents

require 'dry/schema/macros/key'

module Dry
  module Schema
    module Macros
      # A Key specialization used for keys that can be skipped
      #
      # @api public
      class Optional < Key
        # @api private
        def operation
          :then
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dry-schema-0.2.0 lib/dry/schema/macros/optional.rb
dry-schema-0.1.1 lib/dry/schema/macros/optional.rb
dry-schema-0.1.0 lib/dry/schema/macros/optional.rb