# File ruby-3.1.2/lib/rubygems/unknown_command_spell_checker.rb, line 6definitialize(error)
@error = errorend
Public Instance Methods
corrections()click to toggle source
# File ruby-3.1.2/lib/rubygems/unknown_command_spell_checker.rb, line 10defcorrections@corrections||=spell_checker.correct(error.unknown_command).map(&:inspect)
end
Private Instance Methods
spell_checker()click to toggle source
# File ruby-3.1.2/lib/rubygems/unknown_command_spell_checker.rb, line 17defspell_checkerdictionary = Gem::CommandManager.instance.command_namesDidYouMean::SpellChecker.new(dictionary:dictionary)
end