Sha256: 66caa4fbba04fee20700c29de118dae2e01b9f796409aa2605450bfe8ab360a7
Contents?: true
Size: 604 Bytes
Versions: 2
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true module Dry module Types # Hash type exposes additional APIs for working with schema hashes # # @api public class Hash < Nominal class Constructor < ::Dry::Types::Constructor # @api private def constructor_type = ::Dry::Types::Hash::Constructor # @return [Lax] # # @api public def lax = Lax.new(type.lax.constructor(fn, meta: meta)) # @see Dry::Types::Array#of # # @api public def schema(...) = type.schema(...).constructor(fn, meta: meta) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dry-types-1.8.1 | lib/dry/types/hash/constructor.rb |
dry-types-1.8.0 | lib/dry/types/hash/constructor.rb |