Exception: Dry::CLI::InvalidCallbackError
- Defined in:
- lib/dry/cli/errors.rb
Overview
Instance Method Summary collapse
-
#initialize(callback) ⇒ InvalidCallbackError
constructor
private
A new instance of InvalidCallbackError.
Constructor Details
#initialize(callback) ⇒ InvalidCallbackError
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.
Returns a new instance of InvalidCallbackError.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/dry/cli/errors.rb', line 25 def initialize(callback) = case callback when Class "expected `#{callback.inspect}' to respond to `#initialize' with arity 0" else "expected `#{callback.inspect}' to respond to `#call'" end super() end |