Attributes
Read
No documentation available
Class Methods
::
lib/bundler/vendor/thor/lib/thor/error.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/bundler/vendor/thor/lib/thor/error.rb, line 72
def initialize(error)
@error = error
end
No documentation available
Instance Methods
lib/bundler/vendor/thor/lib/thor/error.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/bundler/vendor/thor/lib/thor/error.rb, line 76
def corrections
@corrections ||=
error.unknown.flat_map { |unknown| spell_checker.correct(unknown) }.uniq.map(&:inspect)
end
No documentation available
lib/bundler/vendor/thor/lib/thor/error.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/bundler/vendor/thor/lib/thor/error.rb, line 81
def spell_checker
@spell_checker ||= NoKwargSpellChecker.new(error.switches)
end
No documentation available