Class: Dry::Types::Default::Callable Private
- Inherits:
-
Dry::Types::Default
- Object
- Dry::Types::Default
- Dry::Types::Default::Callable
- Defined in:
- lib/dry/types/default.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
- #options ⇒ Hash included from Options readonly private
- #type ⇒ Type included from Dry::Types::Decorator readonly
Instance Method Summary collapse
- #callable? ⇒ true private
-
#evaluate ⇒ Object
private
Evaluates given callable.
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 Attribute Details
#options ⇒ Hash (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.
#type ⇒ Type (readonly) Originally defined in module Dry::Types::Decorator
Instance Method Details
#callable? ⇒ true
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.
20 21 22 |
# File 'lib/dry/types/default.rb', line 20 def callable? true end |
#evaluate ⇒ 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.
Evaluates given callable
15 16 17 |
# File 'lib/dry/types/default.rb', line 15 def evaluate value.call(type) end |