Class: Checksum Private

Inherits:
Object show all
Extended by:
Forwardable
Defined in:
checksum.rb,
sorbet/rbi/dsl/checksum.rbi

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

A formula's checksum.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hexdigest) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:



12
13
14
# File 'checksum.rb', line 12

def initialize(hexdigest)
  @hexdigest = T.let(hexdigest.downcase, String)
end

Instance Attribute Details

#hexdigestString (readonly)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



9
10
11
# File 'checksum.rb', line 9

def hexdigest
  @hexdigest
end

Instance Method Details

#[](*args, &block) ⇒ T.untyped

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • args (T.untyped)
  • block (T.untyped)

Returns:

  • (T.untyped)


10
# File 'sorbet/rbi/dsl/checksum.rbi', line 10

def [](*args, &block); end

#empty?(*args, &block) ⇒ Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • args (T.untyped)
  • block (T.untyped)

Returns:

  • (Boolean)


13
# File 'sorbet/rbi/dsl/checksum.rbi', line 13

def empty?(*args, &block); end

#length(*args, &block) ⇒ T.untyped

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • args (T.untyped)
  • block (T.untyped)

Returns:

  • (T.untyped)


16
# File 'sorbet/rbi/dsl/checksum.rbi', line 16

def length(*args, &block); end