Spec-Zone.ru › Ruby 2.7

класс UndefinedCommandError

Родитель:
Error

Выбрасывается, когда команда не найдена.

Атрибуты

all_commands[R]
command[R]

Открытые методы класса

new(command, all_commands, namespace) Показать исходный код
# File lib/bundler/vendor/thor/lib/thor/error.rb, line 46
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
Вызывает метод суперкласса Exception::new

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API