Class: Dry::Types::Array::Constructor Private

Inherits:
Constructor show all
Defined in:
lib/dry/types/array/constructor.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from Dry::Types::Constructor

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Dry::Types::Constructor

Instance Attribute Details

#optionsHash (readonly) Originally defined in module Options

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

Instance Method Details

#constructor_typeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
# File 'lib/dry/types/array/constructor.rb', line 10

def constructor_type
  ::Dry::Types::Array::Constructor
end

#laxLax

Returns:



17
18
19
# File 'lib/dry/types/array/constructor.rb', line 17

def lax
  Lax.new(type.lax.constructor(fn, meta: meta))
end

#of(member) ⇒ Object



24
25
26
# File 'lib/dry/types/array/constructor.rb', line 24

def of(member)
  type.of(member).constructor(fn, meta: meta)
end