ruby-changes:32780
From: hsbt <ko1@a...>
Date: Thu, 6 Feb 2014 12:08:44 +0900 (JST)
Subject: [ruby-changes:32780] hsbt:r44859 (trunk): * ext/stringio/stringio.c: [DOC] add docs and example by @schneems [ci skip] [fix GH-527]
hsbt 2014-02-06 12:08:38 +0900 (Thu, 06 Feb 2014) New Revision: 44859 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44859 Log: * ext/stringio/stringio.c: [DOC] add docs and example by @schneems [ci skip] [fix GH-527] Modified files: trunk/ext/stringio/stringio.c Index: ext/stringio/stringio.c =================================================================== --- ext/stringio/stringio.c (revision 44858) +++ ext/stringio/stringio.c (revision 44859) @@ -1493,6 +1493,16 @@ strio_set_encoding(int argc, VALUE *argv https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L1493 /* * 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() -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/