diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-08 05:08:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-08 05:08:03 +0000 |
commit | dfea8516be152c5dc8874f8d33e8ca1e7914775b (patch) | |
tree | dbc0043ccae559e4c38120734f3677b734d4208d /io.c | |
parent | 14aa0d1248c305debef778534caa757d866aaae1 (diff) | |
download | ruby-dfea8516be152c5dc8874f8d33e8ca1e7914775b.tar.gz |
io.c: [DOC] IO#gets [skip ci]
* io.c (rb_io_gets_m): [DOC] add example using limit argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3292,6 +3292,8 @@ rb_io_gets(VALUE io) * File.new("testfile").gets #=> "This is line one\n" * $_ #=> "This is line one\n" * + * File.new("testfile").gets(4)#=> "This" + * * If IO contains multibyte characters byte then <code>gets(1)</code> * returns character entirely: * |