ÿØÿà JFIF ÿÛ „ ( %!1!%*+...983,7(-.-
entries-c.ri 0000644 00000001451 15236074300 0006772 0 ustar 00 U:RDoc::AnyMethod[iI"entries:ETI"Dir::entries;TT:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"CReturns an array containing all of the filenames in the given ;TI"Gdirectory. Will raise a SystemCallError if the named ;TI"directory doesn't exist.;To:RDoc::Markup::BlankLine o;
; [I"OThe optional enc argument specifies the encoding of the directory. ;TI"7If not specified, the filesystem encoding is used.;T@o:RDoc::Markup::Verbatim; [I"DDir.entries("testdir") #=> [".", "..", "config.h", "main.rb"];T:@format0:
@fileI"
dir.c;T:0@omit_headings_from_table_of_contents_below0I"cDir.entries( dirname ) -> array
Dir.entries( dirname, encoding: enc ) -> array
;T0[ I"(*args);T@FI"Dir;TcRDoc::NormalClass00 each_child-i.ri 0000644 00000001463 15236074300 0007375 0 ustar 00 U:RDoc::AnyMethod[iI"each_child:ETI"Dir#each_child;TF:privateo:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"DCalls the block once for each entry except for "." and ".." in ;TI"Gthis directory, passing the filename of each entry as a parameter ;TI"to the block.;To:RDoc::Markup::BlankLine o;
; [I"=If no block is given, an enumerator is returned instead.;T@o:RDoc::Markup::Verbatim; [I"d = Dir.new("testdir")
;TI"*d.each_child {|x| puts "Got #{x}" }
;T:@format0o;
; [I"produces:;T@o;; [I"Got config.h
;TI"Got main.rb;T;
0:
@fileI"
dir.c;T:0@omit_headings_from_table_of_contents_below0I"idir.each_child {| filename | block } -> dir
dir.each_child -> an_enumerator
;T0[ I"();T@FI"Dir;TcRDoc::NormalClass00 to_path-i.ri 0000644 00000000722 15236074300 0006765 0 ustar 00 U:RDoc::AnyMethod[iI"to_path:ETI"Dir#to_path;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"EReturns the path parameter passed to dir's constructor.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"d = Dir.new("..")
;TI"d.path #=> "..";T:@format0:
@fileI"
dir.c;T:0@omit_headings_from_table_of_contents_below0I"!dir.to_path -> string or nil;T0[ I"();T@FI"Dir;TcRDoc::NormalClass00 home-c.ri 0000644 00000000616 15236074300 0006253 0 ustar 00 U:RDoc::AnyMethod[iI" home:ETI"Dir::home;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"FReturns the home directory of the current user or the named user ;TI"if given.;T:
@fileI"
dir.c;T:0@omit_headings_from_table_of_contents_below0I"@Dir.home() -> "/home/me"
Dir.home("root") -> "/root"
;T0[ I"(*args);T@FI"Dir;TcRDoc::NormalClass00 inspect-i.ri 0000644 00000000503 15236074300 0006771 0 ustar 00 U:RDoc::AnyMethod[iI"inspect:ETI"Dir#inspect;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"0Return a string describing this Dir object.;T:
@fileI"
dir.c;T:0@omit_headings_from_table_of_contents_below0I"dir.inspect -> string
;T0[ I"();T@FI"Dir;TcRDoc::NormalClass00 delete-c.ri 0000644 00000000617 15236074300 0006566 0 ustar 00 U:RDoc::AnyMethod[iI"delete:ETI"Dir::delete;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"7Deletes the named directory. Raises a subclass of ;TI"?SystemCallError if the directory isn't empty.;T:
@fileI"
dir.c;T:0@omit_headings_from_table_of_contents_below0I"Dir.delete( string ) -> 0;T0[ I" (p1);T@FI"Dir;TcRDoc::NormalClass00 %5b%5d-c.ri 0000644 00000000573 15236074300 0006176 0 ustar 00 U:RDoc::AnyMethod[iI"[]:ETI"Dir::[];TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Equivalent to calling ;TI"?Dir.glob([string,...],0).;T:
@fileI"
dir.c;T:0@omit_headings_from_table_of_contents_below0I"+Dir[ string [, string ...] ] -> array
;T0[ I"(*args);T@FI"Dir;TcRDoc::NormalClass00 glob-c.ri 0000644 00000007444 15236074300 0006254 0 ustar 00 U:RDoc::AnyMethod[iI" glob:ETI"Dir::glob;TT:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"OExpands +pattern+, which is an Array of patterns or a pattern String, and ;TI"Ireturns the results as +matches+ or as arguments given to the block.;To:RDoc::Markup::BlankLine o;
; [ I"ONote that this pattern is not a regexp, it's closer to a shell glob. See ;TI"MFile::fnmatch for the meaning of the +flags+ parameter. Note that case ;TI"Osensitivity depends on your system (so File::FNM_CASEFOLD is ignored), as ;TI"6does the order in which the results are returned.;T@o:RDoc::Markup::List:
@type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I"*;T; [
o;
; [I"FMatches any file. Can be restricted by other values in the glob. ;TI"2Equivalent to / .* /x in regexp.;T@o;;
;;[ o;;[I"*;T; [o;
; [I"Matches all files;To;;[I"c*;T; [o;
; [I"4Matches all files beginning with c;To;;[I"*c;T; [o;
; [I"1Matches all files ending with c;To;;[I"\*c\*;T; [o;
; [I"6Match all files that have c in them ;TI")(including at the beginning or end).;T@o;
; [I"LNote, this will not match Unix-like hidden files (dotfiles). In order ;TI"=to include those in the match results, you must use the ;TI"EFile::FNM_DOTMATCH flag or something like "{*,.*}".;T@o;;[I"**;T; [o;
; [I"%Matches directories recursively.;T@o;;[I"?;T; [o;
; [I"LMatches any one character. Equivalent to /.{1}/ in regexp.;T@o;;[I"[set];T; [o;
; [I"NMatches any one character in +set+. Behaves exactly like character sets ;TI"=in Regexp, including set negation ([^a-z]).;T@o;;[I"{p,q};T; [ o;
; [I"FMatches either literal p or literal q. ;TI"1Equivalent to pattern alternation in regexp.;T@o;
; [I"LMatching literals may be more than one character in length. More than ;TI"#two literals may be specified.;T@o;;[I" \\ ;T; [ o;
; [I"$Escapes the next metacharacter.;T@o;
; [I"KNote that this means you cannot use backslash on windows as part of a ;TI"Aglob, i.e. Dir["c:\\foo*"] will not work, use ;TI")Dir["c:/foo*"] instead.;T@o;
; [I"Examples:;T@o:RDoc::Markup::Verbatim; [I":Dir["config.?"] #=> ["config.h"]
;TI":Dir.glob("config.?") #=> ["config.h"]
;TI"9Dir.glob("*.[a-z][a-z]") #=> ["main.rb"]
;TI":Dir.glob("*.[^r]*") #=> ["config.h"]
;TI"EDir.glob("*.{rb,h}") #=> ["main.rb", "config.h"]
;TI"EDir.glob("*") #=> ["config.h", "main.rb"]
;TI"PDir.glob("*", File::FNM_DOTMATCH) #=> [".", "..", "config.h", "main.rb"]
;TI"
;TI"'rbfiles = File.join("**", "*.rb")
;TI"9Dir.glob(rbfiles) #=> ["main.rb",
;TI"= # "lib/song.rb",
;TI"E # "lib/song/karaoke.rb"]
;TI"&libdirs = File.join("**", "lib")
;TI"5Dir.glob(libdirs) #=> ["lib"]
;TI"
;TI"7librbfiles = File.join("**", "lib", "**", "*.rb")
;TI"=Dir.glob(librbfiles) #=> ["lib/song.rb",
;TI"E # "lib/song/karaoke.rb"]
;TI"
;TI"1librbfiles = File.join("**", "lib", "*.rb")
;TI"
SystemCallError if the directory isn't empty.;T:
@fileI"
dir.c;T:0@omit_headings_from_table_of_contents_below0I"Dir.rmdir( string ) -> 0;T0[ I" (p1);T@FI"Dir;TcRDoc::NormalClass00 new-c.ri 0000644 00000001055 15236074300 0006112 0 ustar 00 U:RDoc::AnyMethod[iI"new:ETI"
Dir::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"