D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby32
/
share
/
rubygems
/
rubygems
/
Filename :
unknown_command_spell_checker.rb
back
Copy
# frozen_string_literal: true class Gem::UnknownCommandSpellChecker attr_reader :error def initialize(error) @error = error end def corrections @corrections ||= spell_checker.correct(error.unknown_command).map(&:inspect) end private def spell_checker dictionary = Gem::CommandManager.instance.command_names DidYouMean::SpellChecker.new(dictionary: dictionary) end end