Method: Bundler::Thor::UnknownArgumentError::SpellChecker#corrections

Defined in:
lib/bundler/vendor/thor/lib/thor/error.rb

#correctionsObject

[View source]

73
74
75
76
# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 73

def corrections
  @corrections ||=
    error.unknown.flat_map { |unknown| spell_checker.correct(unknown) }.uniq.map(&:inspect)
end