mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Add arg check to Reline.dig_perfect_match_proc=
This commit is contained in:
		
							parent
							
								
									4e038a7e64
								
							
						
					
					
						commit
						71ead07872
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -208,6 +208,7 @@ module Reline
 | 
			
		|||
    @@dig_perfect_match_proc
 | 
			
		||||
  end
 | 
			
		||||
  def self.dig_perfect_match_proc=(p)
 | 
			
		||||
    raise ArgumentError unless p.is_a?(Proc)
 | 
			
		||||
    @@dig_perfect_match_proc = p
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue