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
Instance Method Summary collapse
Methods inherited from Dry::Types::Default
Methods included from Builder
#constrained, #constructor, #default, #enum, #optional, #safe, #|
Methods included from Dry::Types::Decorator
#constructor, #initialize, #respond_to_missing?, #valid?, #with
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
10 11 12 |
# File 'lib/dry/types/default.rb', line 10 def evaluate value.call end |