Attributes
Read
No documentation available
Class Methods
::
lib/rubygems/unknown_command_spell_checker.rb
View on GitHub
# File tmp/rubies/ruby-master/lib/rubygems/unknown_command_spell_checker.rb, line 6
def initialize(error)
@error = error
end
No documentation available
Instance Methods
lib/rubygems/unknown_command_spell_checker.rb
View on GitHub
# File tmp/rubies/ruby-master/lib/rubygems/unknown_command_spell_checker.rb, line 10
def corrections
@corrections ||=
spell_checker.correct(error.unknown_command).map(&:inspect)
end
No documentation available
lib/rubygems/unknown_command_spell_checker.rb
View on GitHub
# File tmp/rubies/ruby-master/lib/rubygems/unknown_command_spell_checker.rb, line 17
def spell_checker
dictionary = Gem::CommandManager.instance.command_names
DidYouMean::SpellChecker.new(dictionary: dictionary)
end
No documentation available