class Gem::UnknownCommandError
Attributes
Public Class Methods
Source
# File lib/rubygems/exceptions.rb, line 23 def self.attach_correctable return if method_defined?(:corrections) if defined?(DidYouMean) && DidYouMean.respond_to?(:correct_error) DidYouMean.correct_error(Gem::UnknownCommandError, Gem::UnknownCommandSpellChecker) end end
Source
# File lib/rubygems/exceptions.rb, line 16 def initialize(unknown_command) self.class.attach_correctable @unknown_command = unknown_command super("Unknown command #{unknown_command}") end
Calls superclass method
Exception::new