Class: PourBottleCheck Private
- Includes:
- OnSystem::MacOSAndLinux
- Defined in:
- pour_bottle_check.rb
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.
Instance Method Summary collapse
-
#initialize(formula) ⇒ PourBottleCheck
constructor
private
A new instance of PourBottleCheck.
- #reason(reason) ⇒ Object private
- #satisfy(&block) ⇒ Object private
Methods included from OnSystem::MacOSAndLinux
Constructor Details
#initialize(formula) ⇒ PourBottleCheck
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 PourBottleCheck.
7 8 9 |
# File 'pour_bottle_check.rb', line 7 def initialize(formula) @formula = formula end |
Instance Method Details
#reason(reason) ⇒ 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.
11 12 13 |
# File 'pour_bottle_check.rb', line 11 def reason(reason) @formula.pour_bottle_check_unsatisfied_reason = reason end |
#satisfy(&block) ⇒ 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.
15 16 17 |
# File 'pour_bottle_check.rb', line 15 def satisfy(&block) @formula.send(:define_method, :pour_bottle?, &block) end |