Class: PourBottleCheck
- Inherits:
-
Object
- Object
- PourBottleCheck
- Defined in:
- Library/Homebrew/software_spec.rb
Instance Method Summary collapse
-
#initialize(formula) ⇒ PourBottleCheck
constructor
A new instance of PourBottleCheck.
- #reason(reason) ⇒ Object
- #satisfy(&block) ⇒ Object
Constructor Details
#initialize(formula) ⇒ PourBottleCheck
Returns a new instance of PourBottleCheck.
398 399 400 |
# File 'Library/Homebrew/software_spec.rb', line 398 def initialize(formula) @formula = formula end |
Instance Method Details
#reason(reason) ⇒ Object
402 403 404 |
# File 'Library/Homebrew/software_spec.rb', line 402 def reason(reason) @formula.pour_bottle_check_unsatisfied_reason = reason end |
#satisfy(&block) ⇒ Object
406 407 408 |
# File 'Library/Homebrew/software_spec.rb', line 406 def satisfy(&block) @formula.send(:define_method, :pour_bottle?, &block) end |