Class: Dependencies Private
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.
Constant Summary collapse
- Elem =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
type_member(:out) { { fixed: Dependency } }
Constants included from Kernel
Kernel::IGNORE_INTERRUPTS_MUTEX
Instance Method Summary collapse
- #<<(other) ⇒ T.self_type private
- #build ⇒ Array<Dependency> private
- #default ⇒ Array<Dependency> private
- #dup_without_system_deps ⇒ Dependencies private
- #each(&blk) ⇒ T::Enumerator[Dependency] private
- #initialize(*args) ⇒ void constructor private
- #optional ⇒ Array<Dependency> private
- #recommended ⇒ Array<Dependency> private
- #required ⇒ Array<Dependency> private
- #select(&blk) ⇒ T::Enumerator[Dependency] private
Methods included from Kernel
#ensure_executable!, #exec_browser, #exec_editor, #ignore_interrupts, #interactive_shell, #quiet_system, #redirect_stdout, #safe_system, #which, #which_editor, #with_env, #with_homebrew_path
Methods included from Enumerable
Constructor Details
#initialize(*args) ⇒ void
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.
15 16 17 |
# File 'dependencies.rb', line 15 def initialize(*args) super(args) end |
Instance Method Details
#<<(other) ⇒ T.self_type
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.
21 |
# File 'dependencies.rbi', line 21 def <<(other); end |
#build ⇒ Array<Dependency>
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.
32 33 34 |
# File 'dependencies.rb', line 32 def build __getobj__.select(&:build?) end |
#default ⇒ Array<Dependency>
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.
42 43 44 |
# File 'dependencies.rb', line 42 def default build + required + recommended end |
#dup_without_system_deps ⇒ 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.
47 48 49 |
# File 'dependencies.rb', line 47 def dup_without_system_deps self.class.new(*__getobj__.reject { |dep| dep.uses_from_macos? && dep.use_macos_install? }) end |
#each(&blk) ⇒ T::Enumerator[Dependency]
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.
14 |
# File 'dependencies.rbi', line 14 def each(&blk); end |
#optional ⇒ Array<Dependency>
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 optional __getobj__.select(&:optional?) end |
#recommended ⇒ Array<Dependency>
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 recommended __getobj__.select(&:recommended?) end |
#required ⇒ Array<Dependency>
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.
37 38 39 |
# File 'dependencies.rb', line 37 def required __getobj__.select(&:required?) end |
#select(&blk) ⇒ T::Enumerator[Dependency]
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 |
# File 'dependencies.rbi', line 18 def select(&blk); end |