Add an accessor to make the intent more clear here
This commit is contained in:
parent
9b2e04593f
commit
95af184a0c
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user