mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* golf_prelude.rb: suppress warning when goruby -v.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									6fe24d1f13
								
							
						
					
					
						commit
						b99c31b38f
					
				
					 2 changed files with 8 additions and 2 deletions
				
			
		|  | @ -1,3 +1,7 @@ | |||
| Wed Sep  3 21:19:51 2008  Kazuhiro NISHIYAMA  <zn@mbf.nifty.com> | ||||
| 
 | ||||
| 	* golf_prelude.rb: suppress warning when goruby -v. | ||||
| 
 | ||||
| Wed Sep  3 21:07:30 2008  Tanaka Akira  <akr@fsij.org> | ||||
| 
 | ||||
| 	* transcode.c (BL_MIN_BYTE): defined. | ||||
|  |  | |||
|  | @ -78,7 +78,8 @@ class String | |||
|   end | ||||
| 
 | ||||
|   (Array.instance_methods-instance_methods-[:to_ary,:transpose,:flatten,:flatten!,:compact,:compact!,:assoc,:rassoc]).each{|meth| | ||||
|     eval"def #{meth}(*args, &block) | ||||
|     eval" | ||||
|     def #{meth}(*args, &block) | ||||
|       a=to_a | ||||
|       result = a.#{meth}(*args, &block) | ||||
|       replace(a.join) | ||||
|  | @ -96,7 +97,8 @@ end | |||
| class Enumerator | ||||
|   alias old_to_s to_s | ||||
|   (Array.instance_methods-instance_methods-[:replace]+[:to_s]).each{|meth| | ||||
|     eval"def #{meth}(*args, &block) | ||||
|     eval" | ||||
|     def #{meth}(*args, &block) | ||||
|       to_a.#{meth}(*args, &block) | ||||
|     end" | ||||
|   } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 kazu
						kazu