Exception: Bundler::Thor::UnknownArgumentError

Inherits:
Error
  • Object
show all
Includes:
if defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable) # rubocop:disable Naming/ConstantName Moduleif defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable) # rubocop:disable Naming/ConstantName Module.new do def to_s super + DidYouMean.formatter.message_for(corrections) end def corrections @corrections ||= self.class.const_get(:SpellChecker).new(self).corrections end end end
Defined in:
lib/bundler/vendor/thor/lib/thor/error.rb

Defined Under Namespace

Classes: SpellChecker

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switches, unknown) ⇒ UnknownArgumentError

Returns a new instance of UnknownArgumentError.



85
86
87
88
89
90
# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 85

def initialize(switches, unknown)
  @switches = switches
  @unknown = unknown

  super("Unknown switches #{unknown.map(&:inspect).join(', ')}")
end

Instance Attribute Details

#switchesObject (readonly)

Returns the value of attribute switches.



83
84
85
# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 83

def switches
  @switches
end

#unknownObject (readonly)

Returns the value of attribute unknown.



83
84
85
# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 83

def unknown
  @unknown
end