From 926301969f7970b5a59a065dabb234cddc590e6c Mon Sep 17 00:00:00 2001 From: drbrain Date: Wed, 29 Jun 2011 03:09:34 +0000 Subject: * math.c: Attach documentation for Math. * object.c: Document NIL, TRUE, FALSE. * io.c: Improve grammar in ARGF comment. Document STDIN/OUT/ERR. Document ARGF global constant. * lib/rake: Hide deprecated toplevel constants from RDoc (import from rake trunk). * lib/thwait.rb: Document ThWait. * lib/mathn.rb: Hide Math redefinition from RDoc * lib/sync.rb: Add a basic comment for Sync_m, Synchronizer_m, Sync, Synchronizer. * parse.y: Document SCRIPT_LINES__. * hash.c: Document ENV class and global constant. * vm.c: Document TOPLEVEL_BINDING. * version.c: Document RUBY_* constants. * ruby.c: Document DATA and ARGV. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'parse.y') diff --git a/parse.y b/parse.y index db33723531..12b49fd6bc 100644 --- a/parse.y +++ b/parse.y @@ -10750,5 +10750,17 @@ Init_ripper(void) /* ensure existing in symbol table */ (void)rb_intern("||"); (void)rb_intern("&&"); + +# if 0 + /* Hack to let RDoc document SCRIPT_LINES__ */ + + /* + * When a Hash is assigned to +SCRIPT_LINES__+ the contents of files loaded + * after the assignment will be added as an Array of lines with the file + * name as the key. + */ + rb_define_global_const("SCRIPT_LINES__", Qnil); +#endif + } #endif /* RIPPER */ -- cgit v1.2.3