Class: Requirements Private
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 requirements.
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: Requirement } }
Constants included from Kernel
Kernel::IGNORE_INTERRUPTS_MUTEX
Instance Method Summary collapse
- #<<(other) ⇒ Requirements private
- #each(&blk) ⇒ T::Enumerator[Requirement] private
- #initialize(*args) ⇒ void constructor private
- #select(&blk) ⇒ T::Enumerator[Requirement] 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.
64 65 66 |
# File 'dependencies.rb', line 64 def initialize(*args) super(Set.new(args)) end |
Instance Method Details
#<<(other) ⇒ Requirements
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.
69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'dependencies.rb', line 69 def <<(other) if other.is_a?(Comparable) __getobj__.grep(other.class) do |req| return self if req > other __getobj__.delete(req) end end # see https://sorbet.org/docs/faq#how-can-i-fix-type-errors-that-arise-from-super T.bind(self, T.untyped) super self end |
#each(&blk) ⇒ T::Enumerator[Requirement]
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 |
# File 'dependencies.rbi', line 30 def each(&blk); end |
#select(&blk) ⇒ T::Enumerator[Requirement]
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 |
# File 'dependencies.rbi', line 34 def select(&blk); end |