summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-26 05:14:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-26 05:14:17 +0000
commit07ae64b05c11b8e8230e99d84463cac495569d22 (patch)
tree27e96f94ea91a82c01ffaf1d4a623c1432967bf1
parent256252ad894a217257ede63e5f8a779864ca933a (diff)
downloadruby-07ae64b05c11b8e8230e99d84463cac495569d22.tar.gz
ruby-07ae64b05c11b8e8230e99d84463cac495569d22.tar.xz
ruby-07ae64b05c11b8e8230e99d84463cac495569d22.zip
* ext/stringio/stringio.c: includes Enumerable as well as IO.
[ruby-talk:77058] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/stringio/stringio.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 24a2d3382..34933ef55 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Jul 26 14:14:12 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+
+ * ext/stringio/stringio.c: includes Enumerable as well as IO.
+ [ruby-talk:77058]
+
Sat Jul 26 07:00:53 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
* lib/erb.rb: fix % line.
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index 4dff4e1eb..366b337a4 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -896,6 +896,8 @@ void
Init_stringio()
{
VALUE StringIO = rb_define_class("StringIO", rb_cData);
+
+ rb_include_module(StringIO, rb_mEnumerable);
rb_define_alloc_func(StringIO, strio_s_allocate);
rb_define_singleton_method(StringIO, "open", strio_s_open, -1);
rb_define_method(StringIO, "initialize", strio_initialize, -1);