From 24b603a28749bffbb875c44d74317639e5d45ba5 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 22 Aug 2013 17:45:08 -0500 Subject: Add an accessor to make the intent more clear here --- Library/Homebrew/options.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3