ruby-changes:24033
From: usa <ko1@a...>
Date: Thu, 14 Jun 2012 16:02:37 +0900 (JST)
Subject: [ruby-changes:24033] usa:r36084 (trunk): * file.c (rb_file_s_basename, rb_file_s_dirname): documentaion fix.
usa 2012-06-14 16:01:08 +0900 (Thu, 14 Jun 2012) New Revision: 36084 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36084 Log: * file.c (rb_file_s_basename, rb_file_s_dirname): documentaion fix. File.basename and File.dirname support File::ALT_SEPARATOR. Modified files: trunk/ChangeLog trunk/file.c Index: ChangeLog =================================================================== --- ChangeLog (revision 36083) +++ ChangeLog (revision 36084) @@ -1,3 +1,8 @@ +Thu Jun 14 15:54:02 2012 NAKAMURA Usaku <usa@r...> + + * file.c (rb_file_s_basename, rb_file_s_dirname): documentaion fix. + File.basename and File.dirname support File::ALT_SEPARATOR. + Thu Jun 14 11:10:10 2012 Yuki Yugui Sonoda <yugui@g...> * nacl/pepper_maini.c: Applies the new embedding API to pepper_ruby. Index: file.c =================================================================== --- file.c (revision 36083) +++ file.c (revision 36084) @@ -3648,8 +3648,9 @@ * File.basename(file_name [, suffix] ) -> base_name * * Returns the last component of the filename given in <i>file_name</i>, - * which must be formed using forward slashes (``<code>/</code>'') - * regardless of the separator used on the local file system. If + * which can be formed using both <code>File::SEPARATOR</code> and + * <code>File::ALT_SEPARETOR</code> as the separator when + * <code>File::ALT_SEPARATOR</code> is not <code>nil</code>. If * <i>suffix</i> is given and present at the end of <i>file_name</i>, * it is removed. * @@ -3708,9 +3709,9 @@ * File.dirname(file_name ) -> dir_name * * Returns all components of the filename given in <i>file_name</i> - * except the last one. The filename must be formed using forward - * slashes (``<code>/</code>'') regardless of the separator used on the - * local file system. + * except the last one. The filename can be formed using both + * <code>File::SEPARATOR</code> and <code>File::ALT_SEPARETOR</code> as the + * separator when <code>File::ALT_SEPARATOR</code> is not <code>nil</code>. * * File.dirname("/home/gumby/work/ruby.rb") #=> "/home/gumby/work" */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/