Class: PourBottleCheck

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

Instance Method Summary collapse

Constructor Details

#initialize(formula) ⇒ PourBottleCheck

Returns a new instance of PourBottleCheck



390
391
392
# File 'Library/Homebrew/software_spec.rb', line 390

def initialize(formula)
  @formula = formula
end

Instance Method Details

#reason(reason) ⇒ Object



394
395
396
# File 'Library/Homebrew/software_spec.rb', line 394

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

#satisfy(&block) ⇒ Object



398
399
400
# File 'Library/Homebrew/software_spec.rb', line 398

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