ruby-changes:26864
From: naruse <ko1@a...>
Date: Thu, 24 Jan 2013 12:03:58 +0900 (JST)
Subject: [ruby-changes:26864] naruse:r38916 (trunk): fix rdoc of __dir__ [Bug #7729]
naruse 2013-01-24 12:03:49 +0900 (Thu, 24 Jan 2013) New Revision: 38916 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38916 Log: fix rdoc of __dir__ [Bug #7729] Modified files: trunk/eval.c Index: eval.c =================================================================== --- eval.c (revision 38915) +++ eval.c (revision 38916) @@ -1505,9 +1505,10 @@ rb_f_callee_name(void) https://github.com/ruby/ruby/blob/trunk/eval.c#L1505 * call-seq: * __dir__ -> string * - * Returns the value of <code>File.dirname(__FILE__)</code> + * Returns the absolute path of the directory of the file from which this + * method is called. * If <code>__FILE__</code> is <code>nil</code>, it returns <code>nil</code>. - * And it returns always an absolute path. + * The return value equals to <code>File.dirname(File.expand_path(__FILE__))</code>. * */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/