diff options
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -3,7 +3,7 @@ io.c - $Author: matz $ - $Date: 1995/01/10 10:42:39 $ + $Date: 1996/12/25 10:42:39 $ created at: Fri Oct 15 18:08:59 JST 1993 Copyright (C) 1993-1996 Yukihiro Matsumoto @@ -116,6 +116,11 @@ closed() Raise(eIOError, "closed stream"); } +void +io_wrong_type() +{ +} + /* writing functions */ VALUE io_write(io, str) @@ -1738,6 +1743,8 @@ Init_IO() cIO = rb_define_class("IO", cObject); rb_include_module(cIO, mEnumerable); + rb_undef_method(CLASS_OF(cIO), "new"); + rb_define_singleton_method(cIO, "popen", io_popen, -1); rb_define_singleton_method(cIO, "foreach", io_foreach, 1); rb_define_singleton_method(cIO, "select", f_select, -1); |