Class: Cask::Artifact::StageOnly Private
- Inherits:
-
AbstractArtifact
- Object
- AbstractArtifact
- Cask::Artifact::StageOnly
- Defined in:
- Library/Homebrew/cask/artifact/stage_only.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Artifact corresponding to the stage_only
stanza.
Instance Attribute Summary
Attributes inherited from AbstractArtifact
Class Method Summary collapse
- .from_args(cask, *args) ⇒ Object private
Instance Method Summary collapse
- #summarize ⇒ Object private
- #to_a ⇒ Object private
Methods inherited from AbstractArtifact
#<=>, #config, dirmethod, dsl_key, english_article, english_name, #initialize, read_script_arguments, #staged_path_join_executable, #to_s
Methods included from Predicable
Constructor Details
This class inherits a constructor from Cask::Artifact::AbstractArtifact
Class Method Details
.from_args(cask, *args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 15 16 |
# File 'Library/Homebrew/cask/artifact/stage_only.rb', line 12 def self.from_args(cask, *args) raise CaskInvalidError.new(cask.token, "'stage_only' takes only a single argument: true") if args != [true] new(cask) end |
Instance Method Details
#summarize ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'Library/Homebrew/cask/artifact/stage_only.rb', line 22 def summarize "true" end |
#to_a ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'Library/Homebrew/cask/artifact/stage_only.rb', line 18 def to_a [true] end |