class Bundler::Thor::UndefinedCommandError::SpellChecker
属性
error[R]
公共类方法
new(error) 点击切换源代码
# File bundler/vendor/thor/lib/thor/error.rb, line 28 def initialize(error) @error = error end
公共实例方法
corrections() 点击切换源代码
# File bundler/vendor/thor/lib/thor/error.rb, line 32 def corrections @corrections ||= spell_checker.correct(error.command).map(&:inspect) end
spell_checker() 点击切换源代码
# File bundler/vendor/thor/lib/thor/error.rb, line 36 def spell_checker DidYouMean::SpellChecker.new(dictionary: error.all_commands) end