Class: PourBottleCheck

Inherits:
Object
  • Object
show all
Defined in:
brew/Library/Homebrew/software_spec.rb

Instance Method Summary collapse

Constructor Details

#initialize(formula) ⇒ PourBottleCheck

Returns a new instance of PourBottleCheck



405
406
407
# File 'brew/Library/Homebrew/software_spec.rb', line 405

def initialize(formula)
  @formula = formula
end

Instance Method Details

#reason(reason) ⇒ Object



409
410
411
# File 'brew/Library/Homebrew/software_spec.rb', line 409

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

#satisfy(&block) ⇒ Object



413
414
415
# File 'brew/Library/Homebrew/software_spec.rb', line 413

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