Method: Bundler::Thor::UndefinedCommandError#initialize

Defined in:
lib/bundler/vendor/thor/lib/thor/error.rb

#initialize(command, all_commands, namespace) ⇒ UndefinedCommandError

Returns a new instance of UndefinedCommandError.



43
44
45
46
47
48
49
50
51
# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 43

def initialize(command, all_commands, namespace)
  @command = command
  @all_commands = all_commands

  message = "Could not find command #{command.inspect}"
  message = namespace ? "#{message} in #{namespace.inspect} namespace." : "#{message}."

  super(message)
end