class UnknownArgumentError::SpellChecker

Attributes

error[R]

Public Class Methods

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

Public Instance Methods

corrections() click to toggle source
# File bundler/vendor/thor/lib/thor/error.rb, line 84
def corrections
  @corrections ||=
    error.unknown.flat_map { |unknown| spell_checker.correct(unknown) }.uniq.map(&:inspect)
end
spell_checker() click to toggle source
# File bundler/vendor/thor/lib/thor/error.rb, line 89
def spell_checker
  @spell_checker ||= NoKwargSpellChecker.new(error.switches)
end