Exception: Bundler::Thor::UndefinedCommandError
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Error ,
StandardError
|
|
Instance Chain:
self,
Bundler::Thor::UndefinedCommandError.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,
Bundler::Thor::UndefinedCommandError.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,
Error ,
StandardError
|
|
Inherits: |
Bundler::Thor::Error
|
Defined in: | lib/bundler/vendor/thor/lib/thor/error.rb |
Overview
Raised when a command was not found.
Class Method Summary
Instance Attribute Summary
- #all_commands readonly
- #command readonly
Constructor Details
.new(command, all_commands, namespace) ⇒ UndefinedCommandError
# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 43
def initialize(command, all_commands, namespace) @command = command @all_commands = all_commands = "Could not find command #{command.inspect}" = namespace ? "#{} in #{namespace.inspect} namespace." : "#{}." super( ) end
Instance Attribute Details
#all_commands (readonly)
[ GitHub ]# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 41
attr_reader :command, :all_commands
#command (readonly)
[ GitHub ]# File 'lib/bundler/vendor/thor/lib/thor/error.rb', line 41
attr_reader :command, :all_commands