aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/options.rb
diff options
context:
space:
mode:
authorJack Nagel2014-08-13 23:45:48 -0500
committerJack Nagel2014-08-13 23:45:48 -0500
commit1d12a2eba672c14675f54de61a31ddbcc6d87cbd (patch)
tree5f59c02407bdf644b23468038d91b91468f59fd0 /Library/Homebrew/options.rb
parent453ceed27d09608daec8f2f86fab6776004a07e0 (diff)
downloadhomebrew-1d12a2eba672c14675f54de61a31ddbcc6d87cbd.tar.bz2
Avoid hardcoding the class name
Diffstat (limited to 'Library/Homebrew/options.rb')
-rw-r--r--Library/Homebrew/options.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/options.rb b/Library/Homebrew/options.rb
index 871d483e1..8c250e2b3 100644
--- a/Library/Homebrew/options.rb
+++ b/Library/Homebrew/options.rb
@@ -85,19 +85,19 @@ class Options
end
def +(o)
- Options.new(@options + o)
+ self.class.new(@options + o)
end
def -(o)
- Options.new(@options - o)
+ self.class.new(@options - o)
end
def &(o)
- Options.new(@options & o)
+ self.class.new(@options & o)
end
def |(o)
- Options.new(@options | o)
+ self.class.new(@options | o)
end
def *(arg)