aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/options.rb
diff options
context:
space:
mode:
authorJack Nagel2014-02-27 14:22:42 -0600
committerJack Nagel2014-02-27 14:22:42 -0600
commit7b1e6606366328fd744d28fbe9eab5942752ed56 (patch)
tree897666416723e98984c698d130add9079199088b /Library/Homebrew/options.rb
parentf4a3e5407b1a84f7a2e7d42f7b7ed02b1d62ca16 (diff)
downloadhomebrew-7b1e6606366328fd744d28fbe9eab5942752ed56.tar.bz2
Add set union to Options
Diffstat (limited to 'Library/Homebrew/options.rb')
-rw-r--r--Library/Homebrew/options.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/options.rb b/Library/Homebrew/options.rb
index 337281546..c3b15b06e 100644
--- a/Library/Homebrew/options.rb
+++ b/Library/Homebrew/options.rb
@@ -83,6 +83,10 @@ class Options
Options.new(@options & o)
end
+ def |(o)
+ Options.new(@options | o)
+ end
+
def *(arg)
@options.to_a * arg
end