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
 | 
			
		||||
  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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user