Class: Dependencies Private

Inherits:
SimpleDelegator
  • 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.


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

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.


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

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.


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

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.


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

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.


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

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.


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

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.


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

def required
  select(&:required?)
end