diff options
| author | Jack Nagel | 2013-08-22 17:45:08 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-22 17:45:08 -0500 |
| commit | 24b603a28749bffbb875c44d74317639e5d45ba5 (patch) | |
| tree | 77591534d64507642aeaa992ef415c5ebd131bd4 | |
| parent | 94da753a7390f7b95b6d92516d162afada74b69e (diff) | |
| download | homebrew-24b603a28749bffbb875c44d74317639e5d45ba5.tar.bz2 | |
Add an accessor to make the intent more clear here
| -rw-r--r-- | Library/Homebrew/options.rb | 5 |
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) |
