Class: PourBottleCheck

Inherits:
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.



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