class Dry::Container::Item::Callable

Callable class to returns a item call

@api public

Public Instance Methods

call() click to toggle source

Returns the result of item call or item

@return [Mixed]

# File lib/dry/container/item/callable.rb, line 14
def call
  callable? ? item.call : item
end