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.



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

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.



18
19
20
# File 'cask/artifact_set.rb', line 18

def to_a
  super.sort
end