Class: Utils::Bottles::TagSpecification Private

Inherits:
Object
  • Object
show all
Defined in:
utils/bottles.rb

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.

The specification for a specific tag

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag:, checksum:, cellar:) ⇒ TagSpecification

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 TagSpecification.



266
267
268
269
270
# File 'utils/bottles.rb', line 266

def initialize(tag:, checksum:, cellar:)
  @tag = tag
  @checksum = checksum
  @cellar = cellar
end

Instance Attribute Details

#cellarSymbol, String (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:



264
265
266
# File 'utils/bottles.rb', line 264

def cellar
  @cellar
end

#checksumChecksum (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:



261
262
263
# File 'utils/bottles.rb', line 261

def checksum
  @checksum
end

#tagUtils::Bottles::Tag (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:



258
259
260
# File 'utils/bottles.rb', line 258

def tag
  @tag
end

Instance Method Details

#==(other) ⇒ Object Also known as: eql?

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.



272
273
274
# File 'utils/bottles.rb', line 272

def ==(other)
  self.class == other.class && tag == other.tag && checksum == other.checksum && cellar == other.cellar
end