Exception: Bundler::Thor::UnknownArgumentError
- Includes:
- 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
- Defined in:
- lib/bundler/vendor/thor/lib/thor/error.rb
Defined Under Namespace
Classes: SpellChecker
Instance Attribute Summary collapse
-
#switches ⇒ Object
readonly
Returns the value of attribute switches.
-
#unknown ⇒ Object
readonly
Returns the value of attribute unknown.
Instance Method Summary collapse
-
#initialize(switches, unknown) ⇒ UnknownArgumentError
constructor
A new instance of UnknownArgumentError.
Constructor Details
#initialize(switches, unknown) ⇒ UnknownArgumentError
Returns a new instance of UnknownArgumentError.
88 89 90 91 92 93 |
# 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 ⇒ Object (readonly)
Returns the value of attribute switches.
86 87 88 |
# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 86 def switches @switches end |
#unknown ⇒ Object (readonly)
Returns the value of attribute unknown.
86 87 88 |
# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 86 def unknown @unknown end |