aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-07-30 21:04:17 -0500
committerJack Nagel2014-07-30 21:04:17 -0500
commit9426831de9d79bb56f21309a333e99df3cacbaf6 (patch)
tree2410e6047b3732031f312cf9fa7cb2fdb38ad80f
parent9e3be69de08a9c4456ad47e2ad8c193424e47daa (diff)
downloadhomebrew-9426831de9d79bb56f21309a333e99df3cacbaf6.tar.bz2
Add without? to Tab
-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 73895bb04..0b1605ab1 100644
--- a/Library/Homebrew/tab.rb
+++ b/Library/Homebrew/tab.rb
@@ -91,6 +91,10 @@ class Tab < OpenStruct
end
end
+ def without? name
+ not with? name
+ end
+
def include? opt
used_options.include? opt
end