Spec-Zone.ru › Ruby 2.7

class UndefinedCommandError::SpellChecker

Parent:
Объект

Атрибуты

error[R]

Публичные Классовые Методы

new(error) Показать исходный код
# File lib/bundler/vendor/thor/lib/thor/error.rb, line 31
def initialize(error)
  @error = error
end

Публичные Экземплярные Методы

corrections() Показать исходный код
# File lib/bundler/vendor/thor/lib/thor/error.rb, line 35
def corrections
  @corrections ||= spell_checker.correct(error.command).map(&:inspect)
end
spell_checker() Показать исходный код
# File lib/bundler/vendor/thor/lib/thor/error.rb, line 39
def spell_checker
  NoKwargSpellChecker.new(error.all_commands)
end

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