Class: Dependencies Private

Inherits:
Array
  • Object
show all
Defined in:
Library/Homebrew/dependencies.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 collection of dependencies.

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Dependencies

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


10
11
12
# File 'Library/Homebrew/dependencies.rb', line 10

def initialize(*args)
  super(args)
end

Instance Method Details

#buildObject

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.


24
25
26
# File 'Library/Homebrew/dependencies.rb', line 24

def build
  select(&:build?)
end

#defaultObject

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.


32
33
34
# File 'Library/Homebrew/dependencies.rb', line 32

def default
  build + required + recommended
end

#inspectObject

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.


36
37
38
# File 'Library/Homebrew/dependencies.rb', line 36

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

#optionalObject

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.


16
17
18
# File 'Library/Homebrew/dependencies.rb', line 16

def optional
  select(&:optional?)
end

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.


20
21
22
# File 'Library/Homebrew/dependencies.rb', line 20

def recommended
  select(&:recommended?)
end

#requiredObject

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.


28
29
30
# File 'Library/Homebrew/dependencies.rb', line 28

def required
  select(&:required?)
end