Class: ArchRequirement Private
- Inherits:
-
Requirement
- Object
- Requirement
- ArchRequirement
- Defined in:
- requirements/arch_requirement.rb,
sorbet/rbi/dsl/arch_requirement.rbi
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.
A requirement on a specific architecture.
Constant Summary
Constants included from Dependable
Instance Attribute Summary collapse
- #arch ⇒ Object readonly private
Attributes inherited from Requirement
Attributes included from Dependable
Instance Method Summary collapse
- #display_s ⇒ String private
-
#initialize(tags) ⇒ ArchRequirement
constructor
private
A new instance of ArchRequirement.
- #message ⇒ String private
Methods inherited from Requirement
cask, download, #env, env, #env_proc, expand, fatal, #fatal?, #mktemp, #modify_build_environment, #option_names, prune, prune?, #satisfied?, #satisfied_result_parent, satisfy
Methods included from BuildEnvironment::DSL
Methods included from Cachable
Methods included from Attrable
Methods included from Dependable
#build?, #implicit?, #option_tags, #optional?, #options, #prune_from_option?, #prune_if_build_and_not_dependent?, #recommended?, #required?, #test?
Constructor Details
#initialize(tags) ⇒ ArchRequirement
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.
Returns a new instance of ArchRequirement.
12 13 14 15 |
# File 'requirements/arch_requirement.rb', line 12 def initialize() @arch = .shift super end |
Instance Attribute Details
#arch ⇒ Object (readonly)
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.
10 11 12 |
# File 'requirements/arch_requirement.rb', line 10 def arch @arch end |
Instance Method Details
#display_s ⇒ String
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.
36 37 38 |
# File 'requirements/arch_requirement.rb', line 36 def display_s "#{@arch} architecture" end |
#message ⇒ String
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.
26 27 28 |
# File 'requirements/arch_requirement.rb', line 26 def "The #{@arch} architecture is required for this software." end |