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.



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

def initialize(formula)
  @formula = formula
end

Instance Method Details

#reason(reason) ⇒ Object



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

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

#satisfy(&block) ⇒ Object



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

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