aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorXu Cheng2016-07-15 15:12:05 +0800
committerXu Cheng2016-07-15 19:57:23 +0800
commit30bbb93f2189be88c799bfdb257216909bcd3fde (patch)
tree2009609cb51c54732e215fb41f509869836c7a02 /Library/Homebrew
parentc021f37525fdd13a427af1618483ccd2d7df35f5 (diff)
downloadbrew-30bbb93f2189be88c799bfdb257216909bcd3fde.tar.bz2
tab: add missing methods
This makes `Tab` compatible with `BuildOptions`.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/tab.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index 58eee9478..b31bfbdda 100644
--- a/Library/Homebrew/tab.rb
+++ b/Library/Homebrew/tab.rb
@@ -179,6 +179,18 @@ class Tab < OpenStruct
include?("32-bit")
end
+ def head?
+ spec == :head
+ end
+
+ def devel?
+ spec == :devel
+ end
+
+ def stable?
+ spec == :stable
+ end
+
def used_options
Options.create(super)
end