Class: ArchRequirement Private

Inherits:
Requirement show all
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

Dependable::RESERVED_TAGS

Instance Attribute Summary

Attributes inherited from Requirement

#cask, #download, #name, #tags

Instance Method Summary collapse

Methods inherited from Requirement

#==, #env, env, #env_proc, expand, #fatal?, #hash, #inspect, #mktemp, #modify_build_environment, #option_names, prune, prune?, #satisfied?, #satisfied_result_parent, satisfy

Methods included from BuildEnvironment::DSL

#env

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.


11
12
13
14
# File 'Library/Homebrew/requirements/arch_requirement.rb', line 11

def initialize(tags)
  @arch = tags.shift
  super(tags)
end

Instance Method Details

#display_sObject

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.


27
28
29
# File 'Library/Homebrew/requirements/arch_requirement.rb', line 27

def display_s
  "#{@arch} architecture"
end

#messageObject

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.


23
24
25
# File 'Library/Homebrew/requirements/arch_requirement.rb', line 23

def message
  "This formula requires an #{@arch} architecture."
end