class Bundler::Thor::UnknownArgumentError::SpellChecker

属性

error[R]

公共类方法

new(error) 点击切换源码
# File bundler/vendor/thor/lib/thor/error.rb, line 69
def initialize(error)
  @error = error
end

公共实例方法

corrections() 点击切换源码
# File bundler/vendor/thor/lib/thor/error.rb, line 73
def corrections
  @corrections ||=
    error.unknown.flat_map { |unknown| spell_checker.correct(unknown) }.uniq.map(&:inspect)
end
spell_checker() 点击切换源码
# File bundler/vendor/thor/lib/thor/error.rb, line 78
def spell_checker
  @spell_checker ||= DidYouMean::SpellChecker.new(dictionary: error.switches)
end