aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim D. Smith2015-03-11 20:23:22 -0700
committerTim D. Smith2015-03-11 21:08:54 -0700
commit29f0ed1443575fea68251ed16fbba798f7684619 (patch)
tree3b2c04cb7b3e559fe670610c6848f83d0ef9e00c
parent7230e677ac7c205533d5e7d87db2eb4e0b5b067a (diff)
downloadhomebrew-29f0ed1443575fea68251ed16fbba798f7684619.tar.bz2
add bottle? method to Tab
Closes #37621.
-rw-r--r--Library/Homebrew/tab.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index 84960e7ea..dcd8c2762 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,