Add an accessor to make the intent more clear here

This commit is contained in:
Jack Nagel 2013-08-22 17:45:08 -05:00
parent 9b2e04593f
commit 95af184a0c

View File

@ -50,13 +50,16 @@ end
class Options class Options
include Enumerable include Enumerable
attr_reader :options
protected :options
def initialize(*args) def initialize(*args)
@options = Set.new(*args) @options = Set.new(*args)
end end
def initialize_copy(other) def initialize_copy(other)
super super
@options = @options.dup @options = other.options.dup
end end
def each(*args, &block) def each(*args, &block)