summaryrefslogtreecommitdiff
path: root/ext
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
commit7a1482c3ee639eb102661b9cb34f53d6f1209407 (patch)
tree27e96f94ea91a82c01ffaf1d4a623c1432967bf1 /ext
parent34ca2ab05891c41e28deecde6a8548127f286525 (diff)
* ext/stringio/stringio.c: includes Enumerable as well as IO.
[ruby-talk:77058] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/stringio/stringio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index 4dff4e1..366b337 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);