mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	add String/Symbol argument to MatchData[x]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									1e608d0dff
								
							
						
					
					
						commit
						a350e9c6e2
					
				
					 5 changed files with 53 additions and 6 deletions
				
			
		
							
								
								
									
										1
									
								
								re.h
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								re.h
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -24,6 +24,7 @@ struct RMatch {
 | 
			
		|||
    struct RBasic basic;
 | 
			
		||||
    VALUE str;
 | 
			
		||||
    struct re_registers *regs;
 | 
			
		||||
    VALUE regexp;  /* RRegexp */
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#define RMATCH(obj)  (R_CAST(RMatch)(obj))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue