From 30bbb93f2189be88c799bfdb257216909bcd3fde Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Fri, 15 Jul 2016 15:12:05 +0800 Subject: [PATCH] tab: add missing methods This makes `Tab` compatible with `BuildOptions`. --- Library/Homebrew/tab.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 58eee94780..b31bfbdda3 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