diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-13 01:24:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-13 01:24:45 +0000 |
commit | b7ef9fa2a4933f1a0fe0ebd4176e01cdff9a8a9f (patch) | |
tree | 1eff4056893d0b07e4f351858bc75e720b2b2f45 /io.c | |
parent | 0229827c8b6f567c4c7a36945c966e8a676a1159 (diff) |
* io.c (Init_IO): use directive hack to make ARGF documentable
in other tools. [ruby-core:42515][Bug #6007]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -11426,10 +11426,11 @@ Init_IO(void) /* Holds the original stderr */ rb_define_global_const("STDERR", rb_stderr); - /* - * Hack to get rdoc to regard ARGF as a class: - * rb_cARGF = rb_define_class("ARGF", rb_cObject); - */ +#if 0 + /* Hack to get rdoc to regard ARGF as a class: */ + rb_cARGF = rb_define_class("ARGF", rb_cObject); +#endif + rb_cARGF = rb_class_new(rb_cObject); rb_set_class_path(rb_cARGF, rb_cObject, "ARGF.class"); rb_define_alloc_func(rb_cARGF, argf_alloc); |