Class: Dry::Core::Container::Item::Callable
- Inherits:
-
Dry::Core::Container::Item
- Object
- Dry::Core::Container::Item
- Dry::Core::Container::Item::Callable
- Defined in:
- lib/dry/core/container/item/callable.rb
Overview
Callable class to returns a item call
Instance Attribute Summary
Attributes inherited from Dry::Core::Container::Item
Instance Method Summary collapse
-
#call ⇒ Mixed
Returns the result of item call or item.
Methods inherited from Dry::Core::Container::Item
#callable?, #initialize, #map, #value?
Constructor Details
This class inherits a constructor from Dry::Core::Container::Item
Instance Method Details
#call ⇒ Mixed
Returns the result of item call or item
15 16 17 |
# File 'lib/dry/core/container/item/callable.rb', line 15 def call callable? ? item.call : item end |