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.



590
591
592
# File 'software_spec.rb', line 590

def initialize(formula)
  @formula = formula
end

Instance Method Details

#reason(reason) ⇒ Object



594
595
596
# File 'software_spec.rb', line 594

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

#satisfy(&block) ⇒ Object



598
599
600
# File 'software_spec.rb', line 598

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