abstract_internal_command.rb 441 Bytes
Newer Older
Markus Reiter's avatar
Markus Reiter committed
1
# typed: strict
2
3
# frozen_string_literal: true

Markus Reiter's avatar
Markus Reiter committed
4
module Cask
Mike McQuaid's avatar
Mike McQuaid committed
5
  class Cmd
Markus Reiter's avatar
Markus Reiter committed
6
7
8
    # Abstract superclass for all internal `brew cask` commands.
    #
    # @api private
9
    class AbstractInternalCommand < AbstractCommand
Markus Reiter's avatar
Markus Reiter committed
10
11
12
      extend T::Sig

      sig { returns(String) }
13
      def self.command_name
14
        super.sub(/^internal_/i, "_")
15
      end
AnastasiaSulyagina's avatar
init  
AnastasiaSulyagina committed
16

Markus Reiter's avatar
Markus Reiter committed
17
      sig { returns(T::Boolean) }
18
      def self.visible?
19
20
21
        false
      end
    end
AnastasiaSulyagina's avatar
init  
AnastasiaSulyagina committed
22
23
  end
end