Class: Dependencies Private

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
dependencies.rb

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 collection of dependencies.

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Dependencies

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 Dependencies.



12
13
14
# File 'dependencies.rb', line 12

def initialize(*args)
  super(args)
end

Instance Method Details

#buildObject

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 'dependencies.rb', line 26

def build
  select(&:build?)
end

#defaultObject

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.



34
35
36
# File 'dependencies.rb', line 34

def default
  build + required + recommended
end

#inspectString

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:



39
40
41
# File 'dependencies.rb', line 39

def inspect
  "#<#{self.class.name}: #{to_a}>"
end

#optionalObject

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.



18
19
20
# File 'dependencies.rb', line 18

def optional
  select(&:optional?)
end

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.



22
23
24
# File 'dependencies.rb', line 22

def recommended
  select(&:recommended?)
end

#requiredObject

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.



30
31
32
# File 'dependencies.rb', line 30

def required
  select(&:required?)
end