Class: Cask::Cmd::AbstractInternalCommand Private

Inherits:
AbstractCommand show all
Defined in:
Library/Homebrew/cask/cmd/abstract_internal_command.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.

Abstract superclass for all internal brew cask commands.

Direct Known Subclasses

InternalHelp, InternalStanza

Constant Summary

Constants inherited from AbstractCommand

Cask::Cmd::AbstractCommand::OPTIONS

Instance Attribute Summary

Attributes inherited from AbstractCommand

#args

Class Method Summary collapse

Methods inherited from AbstractCommand

abstract?, banner_args, banner_headline, help, #initialize, max_named, min_named, parser, run, short_description

Methods included from Homebrew::Search

#query_regexp, #search_casks, #search_descriptions, #search_formulae, #search_taps

Constructor Details

This class inherits a constructor from Cask::Cmd::AbstractCommand

Class Method Details

.command_nameObject

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.


10
11
12
# File 'Library/Homebrew/cask/cmd/abstract_internal_command.rb', line 10

def self.command_name
  super.sub(/^internal_/i, "_")
end

.visible?Boolean

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:

  • (Boolean)

14
15
16
# File 'Library/Homebrew/cask/cmd/abstract_internal_command.rb', line 14

def self.visible?
  false
end