Class: Dependencies Private
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Dependencies
- 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
-
#build ⇒ Object
private
-
#default ⇒ Object
private
-
#initialize(*args) ⇒ Dependencies
constructor
private
A new instance of Dependencies.
-
#inspect ⇒ String
private
-
#optional ⇒ Object
private
-
#recommended ⇒ Object
private
-
#required ⇒ Object
private
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
#build ⇒ Object
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 |
#default ⇒ Object
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 |
#inspect ⇒ String
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.
39 40 41 |
# File 'dependencies.rb', line 39 def inspect "#<#{self.class.name}: #{to_a}>" end |
#optional ⇒ Object
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 |
#recommended ⇒ Object
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 |
#required ⇒ Object
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 |