Class: Dry::Types::Constructor::Function::MethodCall::PrivateCall Private
- Inherits:
-
Dry::Types::Constructor::Function::MethodCall
- Object
- Dry::Types::Constructor::Function
- Dry::Types::Constructor::Function::MethodCall
- Dry::Types::Constructor::Function::MethodCall::PrivateCall
- Defined in:
- lib/dry/types/constructor/function.rb
Overview
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.
Coercion via a private method call
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Dry::Types::Constructor::Function::MethodCall
Attributes inherited from Dry::Types::Constructor::Function
Instance Method Summary collapse
- #call(input, &block) ⇒ Object private
Methods inherited from Dry::Types::Constructor::Function::MethodCall
[], call_class, #initialize, #to_ast
Methods inherited from Dry::Types::Constructor::Function
#<<, #>>, [], #arity, #initialize, #to_ast, #wrapper?, yields_block?
Constructor Details
This class inherits a constructor from Dry::Types::Constructor::Function::MethodCall
Instance Method Details
#call(input, &block) ⇒ 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.
86 87 88 |
# File 'lib/dry/types/constructor/function.rb', line 86 def call(input, &block) @target.send(@name, input, &block) end |