Class: ArchRequirement

Inherits:
Requirement show all
Defined in:
Library/Homebrew/requirements/arch_requirement.rb

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

#==, default_formula, #display_s, #env, env, #env_proc, expand, #fatal?, #hash, #inspect, #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, #recommended?, #required?, #run?

Constructor Details

#initialize(arch) ⇒ ArchRequirement

Returns a new instance of ArchRequirement



6
7
8
9
# File 'Library/Homebrew/requirements/arch_requirement.rb', line 6

def initialize(arch)
  @arch = arch.pop
  super
end

Instance Method Details

#messageObject



18
19
20
# File 'Library/Homebrew/requirements/arch_requirement.rb', line 18

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