diff options
author | katsu <katsu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-06 19:10:12 +0000 |
---|---|---|
committer | katsu <katsu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-06 19:10:12 +0000 |
commit | cac6465677edf7e8762b6e16ae40d0f091191aa3 (patch) | |
tree | 02304a14bc0017a8ad696a16c90b260f752a8880 /ext/zlib/zlib.c | |
parent | 86327765f32b3158bc442b88eb39ae473b08bfa4 (diff) | |
download | ruby-cac6465677edf7e8762b6e16ae40d0f091191aa3.tar.gz |
* ext/zlib/zlib.c (Init_zlib): define Zlib::GzipReader#each_line as an alias of Zlib::GzipReader#each.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r-- | ext/zlib/zlib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index e1aebe446f..8e320b46a4 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -2749,6 +2749,7 @@ void Init_zlib() rb_define_method(cGzipReader, "gets", rb_gzreader_gets, -1); rb_define_method(cGzipReader, "readline", rb_gzreader_readline, -1); rb_define_method(cGzipReader, "each", rb_gzreader_each, -1); + rb_define_method(cGzipReader, "each_line", rb_gzreader_each, -1); rb_define_method(cGzipReader, "readlines", rb_gzreader_readlines, -1); rb_define_const(mZlib, "OS_CODE", INT2FIX(OS_CODE)); |