123456789_123456789_123456789_123456789_123456789_

Exception: Bundler::Thor::UnknownArgumentError

Relationships & Source Files
Namespace Children
Classes:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error, StandardError
Instance Chain:
self, Bundler::Thor::UnknownArgumentError.if defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable) # rubocop:disable Naming/ConstantName if defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable) # rubocop:disable Naming/ConstantName # In order to support versions of Ruby that don't have keyword # arguments, we need our own spell checker class that doesn't take key # words. Even though this code wouldn't be hit because of the check # above, it's still necessary because the interpreter would otherwise be # unable to parse the file. class NoKwargSpellChecker < DidYouMean::SpellChecker # :nodoc: def initialize(dictionary) @dictionary = dictionary end end DidYouMean::Correctable end, Bundler::Thor::UnknownArgumentError.if defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable) # rubocop:disable Naming/ConstantName if defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable) # rubocop:disable Naming/ConstantName # In order to support versions of Ruby that don't have keyword # arguments, we need our own spell checker class that doesn't take key # words. Even though this code wouldn't be hit because of the check # above, it's still necessary because the interpreter would otherwise be # unable to parse the file. class NoKwargSpellChecker < DidYouMean::SpellChecker # :nodoc: def initialize(dictionary) @dictionary = dictionary end end DidYouMean::Correctable end, Error, StandardError
Inherits: Bundler::Thor::Error
Defined in: lib/bundler/vendor/thor/lib/thor/error.rb

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(switches, unknown) ⇒ UnknownArgumentError

[ GitHub ]

  
# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 88

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

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

Instance Attribute Details

#switches (readonly)

[ GitHub ]

  
# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 86

attr_reader :switches, :unknown

#unknown (readonly)

[ GitHub ]

  
# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 86

attr_reader :switches, :unknown