diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-07 10:22:05 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-07 10:22:05 +0000 |
commit | 51ae7f6e9aa24a136115dae1853779055bbd9eb4 (patch) | |
tree | f3d5072725a57bb235affd203e6c9d45653a0a96 /ext/stringio/stringio.c | |
parent | dc50480f6f2b3578c2295436850fb22614284956 (diff) | |
download | ruby-51ae7f6e9aa24a136115dae1853779055bbd9eb4.tar.gz |
* io.c: Fix documentation for each/each_line/lines, bytes/each_byte,
codepoints/each_code_point [ruby-core:23948]
* string.c: ditto
* ext/stringio/stringio.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/stringio/stringio.c')
-rw-r--r-- | ext/stringio/stringio.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index faf974e78d..bc02d6fece 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -615,7 +615,11 @@ strio_get_sync(VALUE self) /* * call-seq: + * strio.bytes {|byte| block } -> strio + * strio.bytes -> anEnumerator + * * strio.each_byte {|byte| block } -> strio + * strio.each_byte -> anEnumerator * * See IO#each_byte. */ @@ -821,7 +825,11 @@ strio_readbyte(VALUE self) /* * call-seq: + * strio.chars {|char| block } -> strio + * strio.chars -> anEnumerator + * * strio.each_char {|char| block } -> strio + * strio.each_char -> anEnumerator * * See IO#each_char. */ @@ -840,7 +848,11 @@ strio_each_char(VALUE self) /* * call-seq: + * strio.codepoints {|c| block } -> strio + * strio.codepoints -> anEnumerator + * * strio.each_codepoint {|c| block } -> strio + * strio.each_codepoint -> anEnumerator * * See IO#each_codepoint. */ @@ -1031,9 +1043,17 @@ strio_readline(int argc, VALUE *argv, VALUE self) * strio.each(sep=$/) {|line| block } -> strio * strio.each(limit) {|line| block } -> strio * strio.each(sep, limit) {|line| block } -> strio + * strio.each(...) -> anEnumerator + * * strio.each_line(sep=$/) {|line| block } -> strio * strio.each_line(limit) {|line| block } -> strio * strio.each_line(sep,limit) {|line| block } -> strio + * strio.each_line(...) -> anEnumerator + * + * strio.lines(sep=$/) {|line| block } -> strio + * strio.lines(limit) {|line| block } -> strio + * strio.lines(sep,limit) {|line| block } -> strio + * strio.lines(...) -> anEnumerator * * See IO#each. */ |