mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* ext/stringio/stringio.c: [DOC] add docs and example by @schneems [ci skip] [fix GH-527]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									71a0162235
								
							
						
					
					
						commit
						c6c6a74fed
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1493,6 +1493,16 @@ strio_set_encoding(int argc, VALUE *argv, VALUE self)
 | 
			
		|||
 | 
			
		||||
/*
 | 
			
		||||
 * Pseudo I/O on String object.
 | 
			
		||||
 *
 | 
			
		||||
 * Commonly used to simulate `$stdio` or `$stderr`
 | 
			
		||||
 *
 | 
			
		||||
 * === Examples
 | 
			
		||||
 *
 | 
			
		||||
 *   require 'stringio'
 | 
			
		||||
 *
 | 
			
		||||
 *   io = StringIO.new
 | 
			
		||||
 *   io.puts "Hello World"
 | 
			
		||||
 *   io.string #=> "Hello World"
 | 
			
		||||
 */
 | 
			
		||||
void
 | 
			
		||||
Init_stringio()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue