Class: ArchRequirement Private
- Inherits:
-
Requirement
- Object
- Requirement
- ArchRequirement
- Defined in:
- Library/Homebrew/requirements/arch_requirement.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.
A requirement on a specific architecture.
Constant Summary
Constants included from Dependable
Instance Attribute Summary collapse
- #arch ⇒ Object readonly private
Attributes inherited from Requirement
#cask, #download, #name, #tags
Instance Method Summary collapse
- #display_s ⇒ Object private
-
#initialize(tags) ⇒ ArchRequirement
constructor
private
A new instance of ArchRequirement.
- #inspect ⇒ Object private
- #message ⇒ Object private
Methods inherited from Requirement
#==, env, #env, #env_proc, expand, #fatal?, #hash, #mktemp, #modify_build_environment, #option_names, prune, prune?, #satisfied?, #satisfied_result_parent, satisfy
Methods included from BuildEnvironment::DSL
Methods included from Dependable
#build?, #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. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ArchRequirement.
14 15 16 17 |
# File 'Library/Homebrew/requirements/arch_requirement.rb', line 14 def initialize() @arch = .shift super() end |
Instance Attribute Details
#arch ⇒ Object (readonly)
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 |
# File 'Library/Homebrew/requirements/arch_requirement.rb', line 12 def arch @arch end |
Instance Method Details
#display_s ⇒ 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.
34 35 36 |
# File 'Library/Homebrew/requirements/arch_requirement.rb', line 34 def display_s "#{@arch} architecture" end |
#inspect ⇒ 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.
30 31 32 |
# File 'Library/Homebrew/requirements/arch_requirement.rb', line 30 def inspect "#<#{self.class.name}: arch=#{@arch.to_s.inspect} #{.inspect}>" end |
#message ⇒ 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.
26 27 28 |
# File 'Library/Homebrew/requirements/arch_requirement.rb', line 26 def "The #{@arch} architecture is required for this software." end |