Class: TapDependency

Inherits:
Dependency show all
Defined in:
Library/Homebrew/dependency.rb

Constant Summary

Constants inherited from Dependency

Dependency::DEFAULT_ENV_PROC

Constants included from Dependable

Dependable::RESERVED_TAGS

Instance Attribute Summary collapse

Attributes inherited from Dependency

#env_proc, #name, #option_names, #tags

Instance Method Summary collapse

Methods inherited from Dependency

#==, #_dump, _load, action, expand, #hash, #inspect, keep_but_prune_recursive_deps, merge_repeats, #missing_options, #modify_build_environment, prune, #satisfied?, skip, #to_formula, #to_s

Methods included from Dependable

#build?, #option_tags, #optional?, #options, #recommended?, #required?, #run?

Constructor Details

#initialize(name, tags = [], env_proc = DEFAULT_ENV_PROC, option_names = [name.split("/").last]) ⇒ TapDependency

Returns a new instance of TapDependency



176
177
178
179
# File 'Library/Homebrew/dependency.rb', line 176

def initialize(name, tags = [], env_proc = DEFAULT_ENV_PROC, option_names = [name.split("/").last])
  @tap = Tap.fetch(name.rpartition("/").first)
  super(name, tags, env_proc, option_names)
end

Instance Attribute Details

#tapObject (readonly)

Returns the value of attribute tap



174
175
176
# File 'Library/Homebrew/dependency.rb', line 174

def tap
  @tap
end

Instance Method Details

#installed?Boolean

Returns:

  • (Boolean)


181
182
183
184
185
# File 'Library/Homebrew/dependency.rb', line 181

def installed?
  super
rescue FormulaUnavailableError
  false
end