mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Some keywords, "true", "false", and "nil" should be treated as a variable
This commit is contained in:
		
							parent
							
								
									0a16ff9f83
								
							
						
					
					
						commit
						de18328192
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -205,7 +205,7 @@ module IRB
 | 
			
		|||
        sep = $2
 | 
			
		||||
        message = Regexp.quote($3)
 | 
			
		||||
 | 
			
		||||
        gv = eval("global_variables", bind).collect{|m| m.to_s}
 | 
			
		||||
        gv = eval("global_variables", bind).collect{|m| m.to_s}.append("true", "false", "nil")
 | 
			
		||||
        lv = eval("local_variables", bind).collect{|m| m.to_s}
 | 
			
		||||
        iv = eval("instance_variables", bind).collect{|m| m.to_s}
 | 
			
		||||
        cv = eval("self.class.constants", bind).collect{|m| m.to_s}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue