From 4057a68e6e074d9e3e42a7e94f89723804f9f998 Mon Sep 17 00:00:00 2001 From: "Tim D. Smith" Date: Wed, 11 Mar 2015 20:23:22 -0700 Subject: [PATCH] add bottle? method to Tab Closes Homebrew/homebrew#37621. --- Library/Homebrew/tab.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 84960e7eaa..dcd8c2762d 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -155,6 +155,10 @@ class Tab < OpenStruct built_as_bottle && !poured_from_bottle end + def bottle? + built_as_bottle + end + def to_json attributes = { "used_options" => used_options.as_flags,