Class: PourBottleCheck

Inherits:
Object
  • Object
show all
Includes:
OnSystem::MacOSAndLinux
Defined in:
software_spec.rb

Instance Method Summary collapse

Methods included from OnSystem::MacOSAndLinux

included

Constructor Details

#initialize(formula) ⇒ PourBottleCheck

Returns a new instance of PourBottleCheck.



638
639
640
# File 'software_spec.rb', line 638

def initialize(formula)
  @formula = formula
end

Instance Method Details

#reason(reason) ⇒ Object



642
643
644
# File 'software_spec.rb', line 642

def reason(reason)
  @formula.pour_bottle_check_unsatisfied_reason = reason
end

#satisfy(&block) ⇒ Object



646
647
648
# File 'software_spec.rb', line 646

def satisfy(&block)
  @formula.send(:define_method, :pour_bottle?, &block)
end