mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	io.c: [DOC] expand docs for IO#puts
[ruby-core:80081] [Bug #13306] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									028bd4ae15
								
							
						
					
					
						commit
						5f5f648c9b
					
				
					 1 changed files with 9 additions and 4 deletions
				
			
		
							
								
								
									
										13
									
								
								io.c
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								io.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -7185,15 +7185,17 @@ io_puts_ary(VALUE ary, VALUE out, int recur)
 | 
			
		|||
 *  call-seq:
 | 
			
		||||
 *     ios.puts(obj, ...)    -> nil
 | 
			
		||||
 *
 | 
			
		||||
 *  Writes the given object(s) to <em>ios</em> as with <code>IO#write</code>.
 | 
			
		||||
 *  Writes the given object(s) to <em>ios</em>.
 | 
			
		||||
 *  Writes a newline after any that do not already end
 | 
			
		||||
 *  with a newline sequence.
 | 
			
		||||
 *  with a newline sequence. Returns +nil+.
 | 
			
		||||
 *
 | 
			
		||||
 *  The stream must be opened for writing.
 | 
			
		||||
 *  If called with an array argument, writes each element on a new line.
 | 
			
		||||
 *  Each given object that isn't a string or array will be converted
 | 
			
		||||
 *  by calling its +to_s+ method.
 | 
			
		||||
 *  If called without arguments, outputs a single newline.
 | 
			
		||||
 *  This doesn't affect $/. ($RS or $INPUT_RECORD_SEPARATOR in English.rb)
 | 
			
		||||
 *
 | 
			
		||||
 *     $stdout.puts("this", "is", "a", "test")
 | 
			
		||||
 *     $stdout.puts("this", "is", ["a", "test"])
 | 
			
		||||
 *
 | 
			
		||||
 *  <em>produces:</em>
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -7201,6 +7203,9 @@ io_puts_ary(VALUE ary, VALUE out, int recur)
 | 
			
		|||
 *     is
 | 
			
		||||
 *     a
 | 
			
		||||
 *     test
 | 
			
		||||
 *
 | 
			
		||||
 *  Note that +puts+ always uses newlines and is not affected
 | 
			
		||||
 *  by the output record separator (<code>$\\</code>).
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
VALUE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue