Class: PourBottleCheck

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

Instance Method Summary collapse

Methods included from OnOS

#on_linux, #on_macos

Constructor Details

#initialize(formula) ⇒ PourBottleCheck

Returns a new instance of PourBottleCheck.



604
605
606
# File 'software_spec.rb', line 604

def initialize(formula)
  @formula = formula
end

Instance Method Details

#reason(reason) ⇒ Object



608
609
610
# File 'software_spec.rb', line 608

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

#satisfy(&block) ⇒ Object



612
613
614
# File 'software_spec.rb', line 612

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