class UnknownArgumentError::SpellChecker
Attributes
error[R]
Public Class Methods
# File lib/bundler/vendor/thor/lib/thor/error.rb, line 72 def initialize(error) @error = error end
Public Instance Methods
# File 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
# File lib/bundler/vendor/thor/lib/thor/error.rb, line 81 def spell_checker @spell_checker ||= NoKwargSpellChecker.new(error.switches) end
Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.