PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Dir
U:RDoc::AnyMethod[iI" chdir:ETI"Dir#chdir;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"5Changes the current working directory to +self+:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"Dir.pwd # => "/" ;TI"dir = Dir.new('example') ;TI"dir.chdir ;TI"Dir.pwd # => "/example" ;T:@format0o; ; [I"=With a block, temporarily changes the working directory:;T@o:RDoc::Markup::List: @type:BULLET:@items[ o:RDoc::Markup::ListItem:@label0; [o; ; [I"Calls the block.;To;;0; [o; ; [I"$Changes to the given directory.;To;;0; [o; ; [I")Executes the block (yields no args).;To;;0; [o; ; [I"-Restores the previous working directory.;To;;0; [o; ; [I"&Returns the block's return value.;T@o; ; [I"CUses Dir.fchdir if available, and Dir.chdir if not, see those ;TI"methods for caveats.;T: @fileI" dir.c;T:0@omit_headings_from_table_of_contents_below0I"(chdir -> 0 chdir { ... } -> object ;T0[ I"();T@7FI"Dir;TcRDoc::NormalClass00
[-] each_child-i.ri
[edit]
[-] cdesc-Dir.ri
[edit]
[-] fchdir-c.ri
[edit]
[-] children-c.ri
[edit]
[-] delete-c.ri
[edit]
[-] mktmpdir-c.ri
[edit]
[-] getwd-c.ri
[edit]
[-] rewind-i.ri
[edit]
[-] new-c.ri
[edit]
[-] mkdir-c.ri
[edit]
[-] unlink-c.ri
[edit]
[-] chroot-c.ri
[edit]
[-] rmdir-c.ri
[edit]
[-] home-c.ri
[edit]
[-] chdir-c.ri
[edit]
[-] seek-i.ri
[edit]
[-] exist%3f-c.ri
[edit]
[-] to_path-i.ri
[edit]
[-] close-i.ri
[edit]
[-] each-i.ri
[edit]
[-] pos-i.ri
[edit]
[-] open-c.ri
[edit]
[-] glob-c.ri
[edit]
[-] path-i.ri
[edit]
[-] chdir-i.ri
[edit]
[-] empty%3f-c.ri
[edit]
[+]
..
[-] pos%3d-i.ri
[edit]
[-] tmpdir-c.ri
[edit]
[-] pwd-c.ri
[edit]
[-] for_fd-c.ri
[edit]
[-] read-i.ri
[edit]
[-] children-i.ri
[edit]
[-] inspect-i.ri
[edit]
[-] each_child-c.ri
[edit]
[-] %5b%5d-c.ri
[edit]
[-] entries-c.ri
[edit]
[-] tell-i.ri
[edit]
[-] fileno-i.ri
[edit]
[-] foreach-c.ri
[edit]