* file.c: [DOC] fix rdoc format of File#expand_path from r43386
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9229a0f3ce
commit
2bd5ab359d
@ -1,3 +1,7 @@
|
|||||||
|
Wed Oct 23 11:43:27 2013 Zachary Scott <e@zzak.io>
|
||||||
|
|
||||||
|
* file.c: [DOC] fix rdoc format of File#expand_path from r43386
|
||||||
|
|
||||||
Tue Oct 22 21:58:28 2013 URABE Shyouhei <shyouhei@ruby-lang.org>
|
Tue Oct 22 21:58:28 2013 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||||
|
|
||||||
* vm_core.h (enum): avoid syntax error.
|
* vm_core.h (enum): avoid syntax error.
|
||||||
|
6
file.c
6
file.c
@ -3424,16 +3424,16 @@ rb_file_expand_path_fast(VALUE fname, VALUE dname)
|
|||||||
*
|
*
|
||||||
* Converts a pathname to an absolute pathname. Relative paths are
|
* Converts a pathname to an absolute pathname. Relative paths are
|
||||||
* referenced from the current working directory of the process unless
|
* referenced from the current working directory of the process unless
|
||||||
* <i>dir_string</i> is given, in which case it will be used as the
|
* +dir_string+ is given, in which case it will be used as the
|
||||||
* starting point. The given pathname may start with a
|
* starting point. The given pathname may start with a
|
||||||
* ``<code>~</code>'', which expands to the process owner's home
|
* ``<code>~</code>'', which expands to the process owner's home
|
||||||
* directory (the environment variable <code>HOME</code> must be set
|
* directory (the environment variable +HOME+ must be set
|
||||||
* correctly). ``<code>~</code><i>user</i>'' expands to the named
|
* correctly). ``<code>~</code><i>user</i>'' expands to the named
|
||||||
* user's home directory.
|
* user's home directory.
|
||||||
*
|
*
|
||||||
* File.expand_path("~oracle/bin") #=> "/home/oracle/bin"
|
* File.expand_path("~oracle/bin") #=> "/home/oracle/bin"
|
||||||
*
|
*
|
||||||
* A simple example of using <i>dir_string</i> is as follows.
|
* A simple example of using +dir_string+ is as follows.
|
||||||
* File.expand_path("ruby", "/usr/bin") #=> "/usr/bin/ruby"
|
* File.expand_path("ruby", "/usr/bin") #=> "/usr/bin/ruby"
|
||||||
*
|
*
|
||||||
* A more complex example which also resolves parent directory is as follows.
|
* A more complex example which also resolves parent directory is as follows.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user