Class: PourBottleCheck Private

Inherits:
Object show all
Includes:
OnSystem::MacOSAndLinux
Defined in:
pour_bottle_check.rb

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Instance Method Summary collapse

Methods included from OnSystem::MacOSAndLinux

included, #on_arch_conditional, #on_macos, #on_system_conditional

Constructor Details

#initialize(formula) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:



8
9
10
# File 'pour_bottle_check.rb', line 8

def initialize(formula)
  @formula = formula
end

Instance Method Details

#reason(reason) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.

Parameters:



13
14
15
# File 'pour_bottle_check.rb', line 13

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

#satisfy(&block) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.

Parameters:

  • block (T.proc.void)


18
19
20
# File 'pour_bottle_check.rb', line 18

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