U:RDoc::AnyMethod[iI"expand_path:ETI"File::expand_path;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [
I"EConverts a pathname to an absolute pathname. Relative paths are ;TI"Ireferenced from the current working directory of the process unless ;TI"A+dir_string+ is given, in which case it will be used as the ;TI"9starting point. The given pathname may start with a ;TI"C``~
'', which expands to the process owner's home ;TI"~user'' expands to the named ;TI"user's home directory.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"FFile.expand_path("~oracle/bin") #=> "/home/oracle/bin"
;T:@format0o;
; [I":A simple example of using +dir_string+ is as follows.;To;; [I"CFile.expand_path("ruby", "/usr/bin") #=> "/usr/bin/ruby"
;T;
0o;
; [I"PA more complex example which also resolves parent directory is as follows. ;TI"LSuppose we are in bin/mygem and want the absolute path of lib/mygem.rb.;T@o;; [I"6File.expand_path("../../lib/mygem.rb", __FILE__)
;TI",#=> ".../path/to/project/lib/mygem.rb"
;T;
0o;
; [I"OSo first it resolves the parent of __FILE__, that is bin/, then go to the ;TI"@parent, the root of the project and appends +lib/mygem.rb+.;T:
@fileI"file.c;T:0@omit_headings_from_table_of_contents_below0I"DFile.expand_path(file_name [, dir_string] ) -> abs_file_name
;T0[ I"(*args);T@+FI" File;TcRDoc::NormalClass00