add bottle? method to Tab

Closes Homebrew/homebrew#37621.
This commit is contained in:
Tim D. Smith 2015-03-11 20:23:22 -07:00
parent b136a0acdf
commit 4057a68e6e

View File

@ -155,6 +155,10 @@ class Tab < OpenStruct
built_as_bottle && !poured_from_bottle built_as_bottle && !poured_from_bottle
end end
def bottle?
built_as_bottle
end
def to_json def to_json
attributes = { attributes = {
"used_options" => used_options.as_flags, "used_options" => used_options.as_flags,