Sha256: dc34bfdafe439f36f7ba176b16a6315dbd99cdbd300b8cf3c8222e654715c526
Contents?: true
Size: 548 Bytes
Versions: 2
Compression:
Stored size: 548 Bytes
Contents
# frozen_string_literal: true module Dry module Types # @api public class Array < Nominal # @api private class Constructor < ::Dry::Types::Constructor # @api private def constructor_type = ::Dry::Types::Array::Constructor # @return [Lax] # # @api public def lax = Lax.new(type.lax.constructor(fn, meta: meta)) # @see Dry::Types::Array#of # # @api public def of(member) = type.of(member).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/array/constructor.rb |
dry-types-1.8.0 | lib/dry/types/array/constructor.rb |