Class: Dry::Types::Array::Constructor Private
- Inherits:
-
Constructor
- Object
- Nominal
- Constructor
- Dry::Types::Array::Constructor
- 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.
Constant Summary
Constants inherited from Nominal
Instance Attribute Summary
Attributes inherited from Constructor
Attributes inherited from Nominal
Attributes included from Options
Instance Method Summary collapse
Methods inherited from Constructor
[], #call_safe, #call_unsafe, #constrained_type, #constructor, #initialize, new, #prepend, #to_ast, #to_proc, #try, wrapper_type
Methods inherited from Nominal
[], #call_safe, #call_unsafe, #coerce, #constrained?, #default?, #failure, #initialize, #name, #optional?, #primitive?, #success, #to_ast, #to_proc, #try, #try_coerce
Methods included from Printable
Methods included from Builder
#&, #>, #constrained, #constrained_type, #constructor, #default, #enum, #fallback, #maybe, #optional, #|
Methods included from Meta
#initialize, #meta, #pristine, #with
Methods included from Options
Methods included from Type
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 Method Details
#constructor_type ⇒ Object
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 |
# File 'lib/dry/types/array/constructor.rb', line 10 def constructor_type = ::Dry::Types::Array::Constructor |
#lax ⇒ Lax
15 |
# File 'lib/dry/types/array/constructor.rb', line 15 def lax = Lax.new(type.lax.constructor(fn, meta: )) |
#of(member) ⇒ Object
20 |
# File 'lib/dry/types/array/constructor.rb', line 20 def of(member) = type.of(member).constructor(fn, meta: ) |