diff options
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2134,6 +2134,10 @@ static VALUE io_close(io) VALUE io; { + if (TYPE(io) == T_FILE) { + rb_io_close(io); + return Qnil; + } return rb_funcall(io, rb_intern("close"), 0, 0); } |