diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-13 03:06:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-13 03:06:52 +0000 |
commit | 8f8764fd314c0ba92095e27842b8a6d04a028d7f (patch) | |
tree | 552207f27e1c6ebde15052ff0260c3c08cd286d7 /io.c | |
parent | d296c3d27ab07267d54786b5b416d78f063a4030 (diff) |
merge revision(s) 34576:
* 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/branches/ruby_1_9_3@34578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -10898,10 +10898,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); |