Class: Cask::ArtifactSet Private

Inherits:
Set
  • Object
show all
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.

Instance Method Summary collapse

Instance Method Details

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



7
8
9
10
11
12
# File 'cask/artifact_set.rb', line 7

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

  to_a.each(&block)
  self
end

#to_aObject

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.



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

def to_a
  super.sort
end