Class: PourBottleCheck

Inherits:
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



358
359
360
# File 'Library/Homebrew/software_spec.rb', line 358

def initialize(formula)
  @formula = formula
end

Instance Method Details

#reason(reason) ⇒ Object



362
363
364
# File 'Library/Homebrew/software_spec.rb', line 362

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

#satisfy(&block) ⇒ Object



366
367
368
# File 'Library/Homebrew/software_spec.rb', line 366

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