requirement: add pour_bottle? method.

Allows disabling bottles from requirements.
This commit is contained in:
Mike McQuaid 2014-03-28 14:52:23 +00:00
parent 33c99123f2
commit 767da444f9

View File

@ -33,6 +33,10 @@ class Requirement
!!result
end
# Can overridden to optionally prevent a formula with this requirement from
# pouring a bottle.
def pour_bottle?; true end
# Overriding #fatal? is deprecated.
# Pass a boolean to the fatal DSL method instead.
def fatal?