Class: Cask::ArtifactSet Private
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
-
#each(&block) ⇒ Object
private
-
#to_a ⇒ Object
private
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_a ⇒ 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 |
# File 'cask/artifact_set.rb', line 18 def to_a super.sort end |