Skip to Content Skip to Search
Methods
C
N

Attributes

[R] error

Class Public methods

new(error)

# File ruby/lib/rubygems/unknown_command_spell_checker.rb, line 6
def initialize(error)
  @error = error
end

Instance Public methods

corrections()

# File ruby/lib/rubygems/unknown_command_spell_checker.rb, line 10
def corrections
  @corrections ||=
    spell_checker.correct(error.unknown_command).map(&:inspect)
end