Class: Checksum Private

Inherits:
Object show all
Extended by:
Forwardable
Defined in:
checksum.rb,
sorbet/rbi/parlour.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) ⇒ Checksum

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 a new instance of Checksum.



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

def initialize(hexdigest)
  @hexdigest = hexdigest.downcase
end

Instance Attribute Details

#hexdigestObject (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.



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

def hexdigest
  @hexdigest
end

Instance Method Details

#==(other) ⇒ Object

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.



18
19
20
21
22
23
24
25
26
27
# File 'checksum.rb', line 18

def ==(other)
  case other
  when String
    to_s == other.downcase
  when Checksum
    hexdigest == other.hexdigest
  else
    false
  end
end

#[](*args, **options, &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)
  • options (T.untyped)
  • block (T.untyped)

Returns:

  • (T.untyped)


26
# File 'sorbet/rbi/parlour.rbi', line 26

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

#empty?(*args, **options, &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)
  • options (T.untyped)
  • block (T.untyped)

Returns:

  • (Boolean)


17
# File 'sorbet/rbi/parlour.rbi', line 17

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

#length(*args, **options, &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)
  • options (T.untyped)
  • block (T.untyped)

Returns:

  • (T.untyped)


23
# File 'sorbet/rbi/parlour.rbi', line 23

def length(*args, **options, &block); end

#to_s(*args, **options, &block) ⇒ String

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)
  • options (T.untyped)
  • block (T.untyped)

Returns:



20
# File 'sorbet/rbi/parlour.rbi', line 20

def to_s(*args, **options, &block); end