class UndefinedCommandError::SpellChecker

Attributes

error[R]

Public Class Methods

new(error) click to toggle source
# File lib/bundler/vendor/thor/lib/thor/error.rb, line 35
def initialize(error)
  @error = error
end

Public Instance Methods

corrections() click to toggle source
# File lib/bundler/vendor/thor/lib/thor/error.rb, line 39
def corrections
  @corrections ||= spell_checker.correct(error.command).map(&:inspect)
end
spell_checker() click to toggle source
# File lib/bundler/vendor/thor/lib/thor/error.rb, line 43
def spell_checker
  NoKwargSpellChecker.new(error.all_commands)
end