class Dry::CLI::InvalidCallbackError

@since 0.2.0

Public Class Methods

new(callback) click to toggle source

@since 0.2.0 @api private

Calls superclass method
# File lib/dry/cli/errors.rb, line 25
def initialize(callback)
  message = case callback
            when Class
              "expected `#{callback.inspect}' to respond to `#initialize' with arity 0"
            else
              "expected `#{callback.inspect}' to respond to `#call'"
            end

  super(message)
end