Class: PourBottleCheck
- Includes:
- OnSystem::MacOSAndLinux
- Defined in:
- software_spec.rb
Instance Method Summary collapse
-
#initialize(formula) ⇒ PourBottleCheck
constructor
A new instance of PourBottleCheck.
- #reason(reason) ⇒ Object
- #satisfy(&block) ⇒ Object
Methods included from OnSystem::MacOSAndLinux
Constructor Details
#initialize(formula) ⇒ PourBottleCheck
Returns a new instance of PourBottleCheck.
650 651 652 |
# File 'software_spec.rb', line 650 def initialize(formula) @formula = formula end |
Instance Method Details
#reason(reason) ⇒ Object
654 655 656 |
# File 'software_spec.rb', line 654 def reason(reason) @formula.pour_bottle_check_unsatisfied_reason = reason end |
#satisfy(&block) ⇒ Object
658 659 660 |
# File 'software_spec.rb', line 658 def satisfy(&block) @formula.send(:define_method, :pour_bottle?, &block) end |