Class: Dependencies Private
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Dependencies
- 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
- #build ⇒ Object private
- #default ⇒ Object private
-
#initialize(*args) ⇒ Dependencies
constructor
private
A new instance of Dependencies.
- #inspect ⇒ Object private
- #optional ⇒ Object private
- #recommended ⇒ Object private
- #required ⇒ Object private
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
#build ⇒ Object
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 |
#default ⇒ Object
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 |
#inspect ⇒ Object
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 |
#optional ⇒ Object
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 |
#recommended ⇒ Object
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 |
#required ⇒ Object
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 |