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.
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_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.
14 15 16 |
# File 'cask/artifact_set.rb', line 14 def to_a super.sort end |