diff options
| author | Xu Cheng | 2016-07-15 15:12:05 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-07-15 19:57:23 +0800 |
| commit | 30bbb93f2189be88c799bfdb257216909bcd3fde (patch) | |
| tree | 2009609cb51c54732e215fb41f509869836c7a02 | |
| parent | c021f37525fdd13a427af1618483ccd2d7df35f5 (diff) | |
| download | brew-30bbb93f2189be88c799bfdb257216909bcd3fde.tar.bz2 | |
tab: add missing methods
This makes `Tab` compatible with `BuildOptions`.
| -rw-r--r-- | Library/Homebrew/tab.rb | 12 |
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 |
