mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* instruby.rb: refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									039fd6a8f9
								
							
						
					
					
						commit
						279385a002
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -179,7 +179,7 @@ if RUBY_PLATFORM =~ /mswin32|mingw|bccwin32/ | |||
| end | ||||
| 
 | ||||
| Dir.glob("*.[1-9]") do |mdoc| | ||||
|   next unless File.read(mdoc)[0] == ?. | ||||
|   next unless open(mdoc){|fh| fh.read(1) == '.'} | ||||
| 
 | ||||
|   section = mdoc[-1,1] | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 eban
						eban