aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/options.rb
diff options
context:
space:
mode:
authorJack Nagel2013-08-22 17:45:08 -0500
committerJack Nagel2013-08-22 17:45:08 -0500
commit24b603a28749bffbb875c44d74317639e5d45ba5 (patch)
tree77591534d64507642aeaa992ef415c5ebd131bd4 /Library/Homebrew/options.rb
parent94da753a7390f7b95b6d92516d162afada74b69e (diff)
downloadhomebrew-24b603a28749bffbb875c44d74317639e5d45ba5.tar.bz2
Add an accessor to make the intent more clear here
Diffstat (limited to 'Library/Homebrew/options.rb')
-rw-r--r--Library/Homebrew/options.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/options.rb b/Library/Homebrew/options.rb
index 033e5b69e..337281546 100644
--- a/Library/Homebrew/options.rb
+++ b/Library/Homebrew/options.rb
@@ -50,13 +50,16 @@ end
class Options
include Enumerable
+ attr_reader :options
+ protected :options
+
def initialize(*args)
@options = Set.new(*args)
end
def initialize_copy(other)
super
- @options = @options.dup
+ @options = other.options.dup
end
def each(*args, &block)