PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Dir
U:RDoc::AnyMethod[iI" open:ETI"Dir::open;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"DCreates a new \Dir object _dir_ for the directory at +dirpath+.;To:RDoc::Markup::BlankLine o; ; [I"HWith no block, the method equivalent to Dir.new(dirpath, encoding):;T@o:RDoc::Markup::Verbatim; [I"!Dir.open('.') # => #<Dir:.> ;T:@format0o; ; [I"EWith a block given, the block is called with the created _dir_; ;TI"Eon block exit _dir_ is closed and the block's value is returned:;T@o;; [I"8Dir.open('.') {|dir| dir.inspect } # => "#<Dir:.>" ;T; 0o; ; [I"?The value given with optional keyword argument +encoding+ ;TI";specifies the encoding for the directory entry names; ;TI"@if +nil+ (the default), the file system's encoding is used:;T@o;; [I"NDir.open('.').read.encoding # => #<Encoding:UTF-8> ;TI"PDir.open('.', encoding: 'US-ASCII').read.encoding # => #<Encoding:US-ASCII>;T; 0: @fileI"dir.rb;T:0@omit_headings_from_table_of_contents_below0I"�Dir.open(dirpath) -> dir Dir.open(dirpath, encoding: nil) -> dir Dir.open(dirpath) {|dir| ... } -> object Dir.open(dirpath, encoding: nil) {|dir| ... } -> object ;TI"dir;T[ I""(name, encoding: nil, &block);T@%FI"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]