Class: Dependencies Private

Inherits:
SimpleDelegator
  • Object
show all
Extended by:
T::Sig
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.



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

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.



27
28
29
# File 'dependencies.rb', line 27

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.



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

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:



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

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.



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

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.



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

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.



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

def required
  select(&:required?)
end