Class: Cask::Cmd::UnknownSubcommand Private
- Inherits:
-
Object
- Object
- Cask::Cmd::UnknownSubcommand
- Defined in:
- brew/Library/Homebrew/cask/cmd.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Helper class for showing help for unknown subcommands.
Instance Method Summary collapse
-
#help ⇒ Object
private
-
#initialize(command_name) ⇒ UnknownSubcommand
constructor
private
A new instance of UnknownSubcommand.
-
#run ⇒ Object
private
Constructor Details
#initialize(command_name) ⇒ UnknownSubcommand
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of UnknownSubcommand.
238 239 240 |
# File 'brew/Library/Homebrew/cask/cmd.rb', line 238 def initialize(command_name) @command_name = command_name end |
Instance Method Details
#help ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
246 247 248 |
# File 'brew/Library/Homebrew/cask/cmd.rb', line 246 def help run end |
#run ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
242 243 244 |
# File 'brew/Library/Homebrew/cask/cmd.rb', line 242 def run(*) raise UsageError, "Subcommand `#{@command_name}` does not exist." end |