diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-26 05:14:17 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-26 05:14:17 +0000 |
| commit | 07ae64b05c11b8e8230e99d84463cac495569d22 (patch) | |
| tree | 27e96f94ea91a82c01ffaf1d4a623c1432967bf1 /ext/stringio | |
| parent | 256252ad894a217257ede63e5f8a779864ca933a (diff) | |
| download | ruby-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
Diffstat (limited to 'ext/stringio')
| -rw-r--r-- | ext/stringio/stringio.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
