Class: Dry::Types::Default::Callable
- Inherits:
-
Dry::Types::Default
- Object
- Dry::Types::Default
- Dry::Types::Default::Callable
- Defined in:
- lib/dry/types/default.rb
Instance Attribute Summary
Attributes inherited from Dry::Types::Default
Attributes included from Dry::Types::Decorator
Attributes included from Options
Instance Method Summary collapse
-
#evaluate ⇒ Object
Evaluates given callable.
Methods inherited from Dry::Types::Default
[], #call, #constrained, #default?, #initialize, #try
Methods included from Builder
#constrained, #constrained_type, #constructor, #default, #enum, #maybe, #optional, #safe, #|
Methods included from Dry::Types::Decorator
#constrained?, #constructor, #decorate?, #default?, #initialize, #method_missing, #respond_to_missing?, #try, #valid?
Methods included from Options
Constructor Details
This class inherits a constructor from Dry::Types::Default
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Dry::Types::Decorator
Instance Method Details
#evaluate ⇒ Object
Evaluates given callable
15 16 17 |
# File 'lib/dry/types/default.rb', line 15 def evaluate value.call end |