Class: Cask::ArtifactSet Private

Inherits:
Set
  • Object
show all
Extended by:
T::Generic
Defined in:
cask/artifact_set.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.

Sorted set containing all cask artifacts.

Constant Summary collapse

Elem =

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

type_member(:out) { { fixed: Artifact::AbstractArtifact } }

Instance Method Summary collapse

Instance Method Details

#each(&block) ⇒ 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.

This method returns an undefined value.

Parameters:

  • block (T.proc.params(arg0: Elem).returns(T.untyped), nil)


12
13
14
15
16
17
# File 'cask/artifact_set.rb', line 12

def each(&block)
  return enum_for(T.must(__method__)) { size } unless block

  to_a.each(&block)
  self
end

#to_aArray<Artifact::AbstractArtifact>

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.



20
21
22
# File 'cask/artifact_set.rb', line 20

def to_a
  super.sort
end