ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- PK6 ]w:realdirpath-i.rinu[U:RDoc::AnyMethod[iI"realdirpath:ETI"Pathname#realdirpath;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"MReturns the real (absolute) pathname of +self+ in the actual filesystem.;To:RDoc::Markup::BlankLineo; ; [I"=Does not contain symlinks or useless dots, +..+ and +.+.;T@o; ; [I"@The last component of the real pathname can be nonexistent.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"(p1 = v1);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]=+IIexecutable_real%3f-i.rinu[U:RDoc::AnyMethod[iI"executable_real?:ETI"Pathname#executable_real?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"#See FileTest.executable_real?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]DŽ11symlink%3f-i.rinu[U:RDoc::AnyMethod[iI" symlink?:ETI"Pathname#symlink?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.symlink?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]Е644each_child-i.rinu[U:RDoc::AnyMethod[iI"each_child:ETI"Pathname#each_child;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"1Iterates over the children of the directory ;TI"/(files and subdirectories, not recursive).;To:RDoc::Markup::BlankLineo; ; [I".It yields Pathname object for each child.;T@o; ; [I"NBy default, the yielded pathnames will have enough information to access ;TI"the files.;T@o; ; [I"NIf you set +with_directory+ to +false+, then the returned pathnames will ;TI"contain the filename only.;T@o:RDoc::Markup::Verbatim; [I"2Pathname("/usr/local").each_child {|f| p f } ;TI"&#=> # ;TI"$# # ;TI"&# # ;TI"$# # ;TI"(# # ;TI"%# # ;TI"$# # ;TI"$# # ;TI" ;TI"9Pathname("/usr/local").each_child(false) {|f| p f } ;TI"#=> # ;TI"# # ;TI"# # ;TI"# # ;TI"# # ;TI"# # ;TI"# # ;TI"# # ;T: @format0o; ; [I"ENote that the results never contain the entries +.+ and +..+ in ;TI"1the directory because they are not children.;T@o; ; [I"See Pathname#children;T: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below000[I"(with_directory=true, &b);T@7FI" Pathname;TcRDoc::NormalClass00PK6 ]F?FFworld_readable%3f-i.rinu[U:RDoc::AnyMethod[iI"world_readable?:ETI"Pathname#world_readable?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I""See FileTest.world_readable?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]BTA to_path-i.rinu[U:RDoc::AnyMethod[iI" to_path:ETI"Pathname#to_path;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"!Return the path as a String.;To:RDoc::Markup::BlankLineo; ; [I"Oto_path is implemented so Pathname objects are usable with File.open, etc.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass0[@FI" to_s;TPK6 ]lb?CCreadable_real%3f-i.rinu[U:RDoc::AnyMethod[iI"readable_real?:ETI"Pathname#readable_real?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"!See FileTest.readable_real?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]D97 ascend-i.rinu[U:RDoc::AnyMethod[iI" ascend:ETI"Pathname#ascend;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"4Iterates over and yields a new Pathname object ;TI";for each element in the given path in ascending order.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I" ;TI"" # ;TI" # ;TI" # ;TI" # ;TI" ;TI";Pathname.new('path/to/some/file.rb').ascend {|v| p v} ;TI") # ;TI"! # ;TI" # ;TI" # ;T: @format0o; ; [I"1Returns an Enumerator if no block was given.;T@o; ; [ I"1enum = Pathname.new("/usr/bin/ruby").ascend ;TI" # ... do stuff ... ;TI"enum.each { |e| ... } ;TI"@ # yields Pathnames /usr/bin/ruby, /usr/bin, /usr, and /. ;T; 0o; ; [I"&It doesn't access the filesystem.;T: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below00I" self;T[I"();T@*FI" Pathname;TcRDoc::NormalClass00PK6 ]> ftype-i.rinu[U:RDoc::AnyMethod[iI" ftype:ETI"Pathname#ftype;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"7Returns "type" of file ("file", "directory", etc).;To:RDoc::Markup::BlankLineo; ; [I"See File.ftype.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I""pathname.ftype -> string ;T0[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]a chown-i.rinu[U:RDoc::AnyMethod[iI" chown:ETI"Pathname#chown;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"(Change owner and group of the file.;To:RDoc::Markup::BlankLineo; ; [I"See File.chown.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I";pathname.chown(owner_int, group_int) -> integer ;T0[I" (p1, p2);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]>::executable%3f-i.rinu[U:RDoc::AnyMethod[iI"executable?:ETI"Pathname#executable?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.executable?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]?A..sticky%3f-i.rinu[U:RDoc::AnyMethod[iI" sticky?:ETI"Pathname#sticky?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.sticky?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]@ S++ exist%3f-i.rinu[U:RDoc::AnyMethod[iI" exist?:ETI"Pathname#exist?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.exist?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]4Jqq extname-i.rinu[U:RDoc::AnyMethod[iI" extname:ETI"Pathname#extname;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I""Returns the file's extension.;To:RDoc::Markup::BlankLineo; ; [I"See File.extname.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]P] glob-c.rinu[U:RDoc::AnyMethod[iI" glob:ETI"Pathname::glob;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"(Returns or yields Pathname objects.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I" Pathname.glob("lib/i*.rb") ;TI"A #=> [#, #] ;T: @format0o; ; [I"See Dir.glob.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"(p1, p2 = v2, p3 = v3);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]h obj ;T0[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]5h  eql%3f-i.rinu[U:RDoc::AnyMethod[iI" eql?:ETI"Pathname#eql?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"JCompare this pathname with +other+. The comparison is string-based. ;TI"QBe aware that two different paths (foo.txt and ./foo.txt) ;TI" can refer to the same file.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I" (p1);T@FI" Pathname;TcRDoc::NormalClass0[@FI"==;TPK6 ]^ unlink-i.rinu[U:RDoc::AnyMethod[iI" unlink:ETI"Pathname#unlink;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"LRemoves a file or directory, using File.unlink if +self+ is a file, or ;TI"Dir.unlink as necessary.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[[I" delete;T@ I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ] Y77 root%3f-i.rinu[U:RDoc::AnyMethod[iI" root?:ETI"Pathname#root?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CPredicate method for root directories. Returns +true+ if the ;TI".pathname consists of consecutive slashes.;To:RDoc::Markup::BlankLineo; ; [I"JIt doesn't access the filesystem. So it may return +false+ for some ;TI">pathnames which points to roots such as /usr/...;T: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]Knew-c.rinu[U:RDoc::AnyMethod[iI"new:ETI"Pathname::new;TT: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"MCreate a Pathname object from the given String (or String-like object). ;TI"SIf +path+ contains a NULL character (\0), an ArgumentError is raised.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I" (p1);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]ώexpand_path-i.rinu[U:RDoc::AnyMethod[iI"expand_path:ETI"Pathname#expand_path;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I",Returns the absolute path for the file.;To:RDoc::Markup::BlankLineo; ; [I"See File.expand_path.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"(p1 = v1);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]? parent-i.rinu[U:RDoc::AnyMethod[iI" parent:ETI"Pathname#parent;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I""Returns the parent directory.;To:RDoc::Markup::BlankLineo; ; [I".This is same as self + '..'.;T: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]kh freeze-i.rinu[U:RDoc::AnyMethod[iI" freeze:ETI"Pathname#freeze;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Freezes this Pathname.;To:RDoc::Markup::BlankLineo; ; [I"See Object.freeze.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I"pathname.freeze -> obj ;T0[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]# basename-i.rinu[U:RDoc::AnyMethod[iI" basename:ETI"Pathname#basename;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I",Returns the last component of the path.;To:RDoc::Markup::BlankLineo; ; [I"See File.basename.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"(p1 = v1);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]1d chmod-i.rinu[U:RDoc::AnyMethod[iI" chmod:ETI"Pathname#chmod;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Changes file permissions.;To:RDoc::Markup::BlankLineo; ; [I"See File.chmod.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I"+pathname.chmod(mode_int) -> integer ;T0[I" (p1);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]x children-i.rinu[U:RDoc::AnyMethod[iI" children:ETI"Pathname#children;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"JReturns the children of the directory (files and subdirectories, not ;TI"0recursive) as an array of Pathname objects.;To:RDoc::Markup::BlankLineo; ; [I"OBy default, the returned pathnames will have enough information to access ;TI"Jthe files. If you set +with_directory+ to +false+, then the returned ;TI".pathnames will contain the filename only.;T@o; ; [I"For example:;To:RDoc::Markup::Verbatim; [ I"(pn = Pathname("/usr/lib/ruby/1.8") ;TI"pn.children ;TI"7 # -> [ Pathname:/usr/lib/ruby/1.8/English.rb, ;TI"3 Pathname:/usr/lib/ruby/1.8/Env.rb, ;TI"< Pathname:/usr/lib/ruby/1.8/abbrev.rb, ... ] ;TI"pn.children(false) ;TI"P # -> [ Pathname:English.rb, Pathname:Env.rb, Pathname:abbrev.rb, ... ] ;T: @format0o; ; [I"ENote that the results never contain the entries +.+ and +..+ in ;TI"1the directory because they are not children.;T: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below000[I"(with_directory=true);T@%FI" Pathname;TcRDoc::NormalClass00PK6 ]8LCCwritable_real%3f-i.rinu[U:RDoc::AnyMethod[iI"writable_real?:ETI"Pathname#writable_real?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"!See FileTest.writable_real?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]ƞ44blockdev%3f-i.rinu[U:RDoc::AnyMethod[iI"blockdev?:ETI"Pathname#blockdev?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.blockdev?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ].77directory%3f-i.rinu[U:RDoc::AnyMethod[iI"directory?:ETI"Pathname#directory?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.directory?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]>tt mkdir-i.rinu[U:RDoc::AnyMethod[iI" mkdir:ETI"Pathname#mkdir;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"%Create the referenced directory.;To:RDoc::Markup::BlankLineo; ; [I"See Dir.mkdir.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"(p1 = v1);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]mdrelative_path_from-i.rinu[U:RDoc::AnyMethod[iI"relative_path_from:ETI" Pathname#relative_path_from;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"MReturns a relative path from the given +base_directory+ to the receiver.;To:RDoc::Markup::BlankLineo; ; [I"GIf +self+ is absolute, then +base_directory+ must be absolute too.;T@o; ; [I"GIf +self+ is relative, then +base_directory+ must be relative too.;T@o; ; [I"HThis method doesn't access the filesystem. It assumes no symlinks.;T@o; ; [I"AArgumentError is raised when it cannot find a relative path.;T@o; ; [I"QNote that this method does not handle situations where the case sensitivity ;TI"Hof the filesystem in use differs from the operating system default.;T: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below000[I"(base_directory);T@FI" Pathname;TcRDoc::NormalClass00PK6 ][%-cc rename-i.rinu[U:RDoc::AnyMethod[iI" rename:ETI"Pathname#rename;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Rename the file.;To:RDoc::Markup::BlankLineo; ; [I"See File.rename.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I" (p1);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]¢!44grpowned%3f-i.rinu[U:RDoc::AnyMethod[iI"grpowned?:ETI"Pathname#grpowned?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.grpowned?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]{ split-i.rinu[U:RDoc::AnyMethod[iI" split:ETI"Pathname#split;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"8Returns the #dirname and the #basename in an Array.;To:RDoc::Markup::BlankLineo; ; [I"See File.split.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]or join-i.rinu[U:RDoc::AnyMethod[iI" join:ETI"Pathname#join;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"KJoins the given pathnames onto +self+ to create a new Pathname object.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"Apath0 = Pathname.new("/usr") # Pathname:/usr ;TI"Jpath0 = path0.join("bin/ruby") # Pathname:/usr/bin/ruby ;TI" # is the same as ;TI"Jpath1 = Pathname.new("/usr") + "bin/ruby" # Pathname:/usr/bin/ruby ;TI"path0 == path1 ;TI" #=> true;T: @format0: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below000[I" (*args);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]PHH sub_ext-i.rinu[U:RDoc::AnyMethod[iI" sub_ext:ETI"Pathname#sub_ext;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"EReturn a pathname with +repl+ added as a suffix to the basename.;To:RDoc::Markup::BlankLineo; ; [I"7If self has no extension part, +repl+ is appended.;T@o:RDoc::Markup::Verbatim; [I"6Pathname.new('/usr/bin/shutdown').sub_ext('.rb') ;TI"- #=> #;T: @format0: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I" (p1);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]%% size-i.rinu[U:RDoc::AnyMethod[iI" size:ETI"Pathname#size;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.size.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]~~ truncate-i.rinu[U:RDoc::AnyMethod[iI" truncate:ETI"Pathname#truncate;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"*Truncates the file to +length+ bytes.;To:RDoc::Markup::BlankLineo; ; [I"See File.truncate.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I" (p1);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]pFFworld_writable%3f-i.rinu[U:RDoc::AnyMethod[iI"world_writable?:ETI"Pathname#world_writable?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I""See FileTest.world_writable?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]G mtime-i.rinu[U:RDoc::AnyMethod[iI" mtime:ETI"Pathname#mtime;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"0Returns the last modified time of the file.;To:RDoc::Markup::BlankLineo; ; [I"See File.mtime.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I" pathname.mtime -> time ;T0[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]u11chardev%3f-i.rinu[U:RDoc::AnyMethod[iI" chardev?:ETI"Pathname#chardev?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.chardev?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]Ws to_s-i.rinu[U:RDoc::AnyMethod[iI" to_s:ETI"Pathname#to_s;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"!Return the path as a String.;To:RDoc::Markup::BlankLineo; ; [I"Oto_path is implemented so Pathname objects are usable with File.open, etc.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I"Mpathname.to_s -> string pathname.to_path -> string ;T0[[I" to_path;T@ I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]va, delete-i.rinu[U:RDoc::AnyMethod[iI" delete:ETI"Pathname#delete;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"LRemoves a file or directory, using File.unlink if +self+ is a file, or ;TI"Dir.unlink as necessary.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass0[@FI" unlink;TPK6 ]=2..socket%3f-i.rinu[U:RDoc::AnyMethod[iI" socket?:ETI"Pathname#socket?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.socket?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]%aQjj readlink-i.rinu[U:RDoc::AnyMethod[iI" readlink:ETI"Pathname#readlink;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Read symbolic link.;To:RDoc::Markup::BlankLineo; ; [I"See File.readlink.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]Z write-i.rinu[U:RDoc::AnyMethod[iI" write:ETI"Pathname#write;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"#Writes +contents+ to the file.;To:RDoc::Markup::BlankLineo; ; [I"See File.write.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I"lpathname.write(string, [offset] ) => fixnum pathname.write(string, [offset], open_args ) => fixnum ;T0[I" (p1 = v1, p2 = v2, p3 = v3);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]5O4 binread-i.rinu[U:RDoc::AnyMethod[iI" binread:ETI"Pathname#binread;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HReturns all the bytes from the file, or the first +N+ if specified.;To:RDoc::Markup::BlankLineo; ; [I"See File.binread.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I"5pathname.binread([length [, offset]]) -> string ;T0[I"(p1 = v1, p2 = v2);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]FHmm rmdir-i.rinu[U:RDoc::AnyMethod[iI" rmdir:ETI"Pathname#rmdir;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"%Remove the referenced directory.;To:RDoc::Markup::BlankLineo; ; [I"See Dir.rmdir.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ] binwrite-i.rinu[U:RDoc::AnyMethod[iI" binwrite:ETI"Pathname#binwrite;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I">Writes +contents+ to the file, opening it in binary mode.;To:RDoc::Markup::BlankLineo; ; [I"See File.binwrite.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I"rpathname.binwrite(string, [offset] ) => fixnum pathname.binwrite(string, [offset], open_args ) => fixnum ;T0[I" (p1 = v1, p2 = v2, p3 = v3);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]|ٟ%%cdesc-Pathname.rinu[U:RDoc::NormalClass[iI" Pathname:ET@I" Object;To:RDoc::Markup::Document: @parts[o;;[: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below0o;;[:o:RDoc::Markup::Paragraph;[I"LPathname represents the name of a file or directory on the filesystem, ;TI"but not the file itself.;To:RDoc::Markup::BlankLineo; ;[I"GThe pathname depends on the Operating System: Unix, Windows, etc. ;TI"OThis library works with pathnames of local OS, however non-Unix pathnames ;TI""are supported experimentally.;T@o; ;[I"HA Pathname can be relative or absolute. It's not until you try to ;TI"Lreference the file that it even matters whether the file exists or not.;T@o; ;[I"EPathname is immutable. It has no method for destructive update.;T@o; ;[I"OThe goal of this class is to manipulate file path information in a neater ;TI"Jway than standard Ruby provides. The examples below demonstrate the ;TI"difference.;T@o; ;[I"Q*All* functionality from File, FileTest, and some from Dir and FileUtils is ;TI"Nincluded, in an unsurprising way. It is essentially a facade for all of ;TI"these, and more.;T@S:RDoc::Markup::Heading: leveli: textI" Examples;T@S; ;i;I"Example 1: Using Pathname;T@o:RDoc::Markup::Verbatim;[I"require 'pathname' ;TI"(pn = Pathname.new("/usr/bin/ruby") ;TI")size = pn.size # 27662 ;TI")isdir = pn.directory? # false ;TI"5dir = pn.dirname # Pathname:/usr/bin ;TI"1base = pn.basename # Pathname:ruby ;TI"Fdir, base = pn.split # [Pathname:/usr/bin, Pathname:ruby] ;TI"data = pn.read ;TI"pn.open { |f| _ } ;TI"pn.each_line { |line| _ } ;T: @format0S; ;i;I"#Example 2: Using standard Ruby;T@o;;[I"pn = "/usr/bin/ruby" ;TI")size = File.size(pn) # 27662 ;TI")isdir = File.directory?(pn) # false ;TI".dir = File.dirname(pn) # "/usr/bin" ;TI"*base = File.basename(pn) # "ruby" ;TI"8dir, base = File.split(pn) # ["/usr/bin", "ruby"] ;TI"data = File.read(pn) ;TI"File.open(pn) { |f| _ } ;TI"#File.foreach(pn) { |line| _ } ;T;0S; ;i;I" Example 3: Special features;T@o;;[I"9p1 = Pathname.new("/usr/lib") # Pathname:/usr/lib ;TI"Bp2 = p1 + "ruby/1.8" # Pathname:/usr/lib/ruby/1.8 ;TI"5p3 = p1.parent # Pathname:/usr ;TI"=p4 = p2.relative_path_from(p3) # Pathname:lib/ruby/1.8 ;TI";T@.[I"==;T@.[I"===;T@.[I"absolute?;T@@[I" ascend;T@@[I" atime;T@.[I" basename;T@.[I" binread;T@.[I" binwrite;T@.[I"birthtime;T@.[I"blockdev?;T@.[I" chardev?;T@.[I" children;T@@[I" chmod;T@.[I" chown;T@.[I"cleanpath;T@@[I" ctime;T@.[I" delete;T@.[I" descend;T@@[I"directory?;T@.[I" dirname;T@.[I"each_child;T@@[I"each_entry;T@.[I"each_filename;T@@[I"each_line;T@.[I" empty?;T@.[I" entries;T@.[I" eql?;T@.[I"executable?;T@.[I"executable_real?;T@.[I" exist?;T@.[I"expand_path;T@.[I" extname;T@.[I" file?;T@.[I" find;T@@[I" fnmatch;T@.[I" fnmatch?;T@.[I" freeze;T@.[I" ftype;T@.[I" glob;T@.[I"grpowned?;T@.[I" join;T@@[I" lchmod;T@.[I" lchown;T@.[I" lstat;T@.[I"make_link;T@.[I"make_symlink;T@.[I" mkdir;T@.[I" mkpath;T@@[I"mountpoint?;T@@[I" mtime;T@.[I" open;T@.[I" opendir;T@.[I" owned?;T@.[I" parent;T@@[I" pipe?;T@.[I" read;T@.[I"readable?;T@.[I"readable_real?;T@.[I"readlines;T@.[I" readlink;T@.[I"realdirpath;T@.[I" realpath;T@.[I"relative?;T@@[I"relative_path_from;T@@[I" rename;T@.[I" rmdir;T@.[I" rmtree;T@@[I" root?;T@@[I" setgid?;T@.[I" setuid?;T@.[I" size;T@.[I" size?;T@.[I" socket?;T@.[I" split;T@.[I" stat;T@.[I" sticky?;T@.[I"sub;T@.[I" sub_ext;T@.[I" symlink?;T@.[I" sysopen;T@.[I" taint;T@.[I" to_path;T@.[I" to_s;T@.[I" truncate;T@.[I" unlink;T@.[I" untaint;T@.[I" utime;T@.[I"world_readable?;T@.[I"world_writable?;T@.[I"writable?;T@.[I"writable_real?;T@.[I" write;T@.[I" zero?;T@.[[U:RDoc::Context::Section[i0o;;[; 0; 0[I"!ext/pathname/lib/pathname.rb;TI"ext/pathname/pathname.c;T@cRDoc::TopLevelPK6 ]*+G̓ dirname-i.rinu[U:RDoc::AnyMethod[iI" dirname:ETI"Pathname#dirname;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"4Returns all but the last component of the path.;To:RDoc::Markup::BlankLineo; ; [I"See File.dirname.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ](( size%3f-i.rinu[U:RDoc::AnyMethod[iI" size?:ETI"Pathname#size?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.size?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ] descend-i.rinu[U:RDoc::AnyMethod[iI" descend:ETI"Pathname#descend;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"4Iterates over and yields a new Pathname object ;TI" ;TI" # ;TI" # ;TI"" # ;TI"* # ;TI" ;TI" ;TI" # ;TI"! # ;TI") # ;T: @format0o; ; [I"1Returns an Enumerator if no block was given.;T@o; ; [ I"2enum = Pathname.new("/usr/bin/ruby").descend ;TI" # ... do stuff ... ;TI"enum.each { |e| ... } ;TI"@ # yields Pathnames /, /usr, /usr/bin, and /usr/bin/ruby. ;T; 0o; ; [I"&It doesn't access the filesystem.;T: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below00I"v;T[I"();T@*FI" Pathname;TcRDoc::NormalClass00PK6 ]/44writable%3f-i.rinu[U:RDoc::AnyMethod[iI"writable?:ETI"Pathname#writable?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.writable?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]7 read-i.rinu[U:RDoc::AnyMethod[iI" read:ETI"Pathname#read;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"IReturns all data from the file, or the first +N+ bytes if specified.;To:RDoc::Markup::BlankLineo; ; [I"See File.read.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I"jpathname.read([length [, offset]]) -> string pathname.read([length [, offset]], open_args) -> string ;T0[I" (p1 = v1, p2 = v2, p3 = v3);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]&each_filename-i.rinu[U:RDoc::AnyMethod[iI"each_filename:ETI"Pathname#each_filename;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I".Iterates over each component of the path.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"CPathname.new("/usr/bin/ruby").each_filename {|filename| ... } ;TI"* # yields "usr", "bin", and "ruby". ;T: @format0o; ; [I"1Returns an Enumerator if no block was given.;T@o; ; [ I"8enum = Pathname.new("/usr/bin/ruby").each_filename ;TI" # ... do stuff ... ;TI"enum.each { |e| ... } ;TI") # yields "usr", "bin", and "ruby".;T; 0: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below00I" filename;T[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]TH..setuid%3f-i.rinu[U:RDoc::AnyMethod[iI" setuid?:ETI"Pathname#setuid?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.setuid?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]^Yzmake_symlink-i.rinu[U:RDoc::AnyMethod[iI"make_symlink:ETI"Pathname#make_symlink;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Creates a symbolic link.;To:RDoc::Markup::BlankLineo; ; [I"See File.symlink.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I" pathname.make_symlink(old) ;T0[I" (p1);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]_(7pprelative%3f-i.rinu[U:RDoc::AnyMethod[iI"relative?:ETI"Pathname#relative?;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"'The opposite of Pathname#absolute?;To:RDoc::Markup::BlankLineo; ; [I" false ;TI" ;TI"%p = Pathname.new('not/so/sure') ;TI"p.relative? ;TI" #=> true;T: @format0: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]Xw++ owned%3f-i.rinu[U:RDoc::AnyMethod[iI" owned?:ETI"Pathname#owned?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.owned?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]ئ~~ taint-i.rinu[U:RDoc::AnyMethod[iI" taint:ETI"Pathname#taint;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"RReturns pathname. This method is deprecated and will be removed in Ruby 3.2.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I"pathname.taint -> obj ;T0[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]/Rcleanpath-i.rinu[U:RDoc::AnyMethod[iI"cleanpath:ETI"Pathname#cleanpath;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"PReturns clean pathname of +self+ with consecutive slashes and useless dots ;TI".removed. The filesystem is not accessed.;To:RDoc::Markup::BlankLineo; ; [ I"QIf +consider_symlink+ is +true+, then a more conservative algorithm is used ;TI"Eto avoid breaking symbolic linkages. This may retain more +..+ ;TI"Nentries than absolutely necessary, but without accessing the filesystem, ;TI"this can't be avoided.;T@o; ; [I"See Pathname#realpath.;T: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below000[I"(consider_symlink=false);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]aE getwd-c.rinu[U:RDoc::AnyMethod[iI" getwd:ETI"Pathname::getwd;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"9Returns the current working directory as a Pathname.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"Pathname.getwd ;TI"2 #=> # ;T: @format0o; ; [I"See Dir.getwd.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ] %3d%3d%3d-i.rinu[U:RDoc::AnyMethod[iI"===:ETI"Pathname#===;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"JCompare this pathname with +other+. The comparison is string-based. ;TI"QBe aware that two different paths (foo.txt and ./foo.txt) ;TI" can refer to the same file.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I" (p1);T@FI" Pathname;TcRDoc::NormalClass0[@FI"==;TPK6 ]G@-@@readlines-i.rinu[U:RDoc::AnyMethod[iI"readlines:ETI"Pathname#readlines;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I")Returns all the lines from the file.;To:RDoc::Markup::BlankLineo; ; [I"See File.readlines.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I"pathname.readlines(sep=$/ [, open_args]) -> array pathname.readlines(limit [, open_args]) -> array pathname.readlines(sep, limit [, open_args]) -> array ;T0[I" (p1 = v1, p2 = v2, p3 = v3);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]=Po11 realpath-i.rinu[U:RDoc::AnyMethod[iI" realpath:ETI"Pathname#realpath;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"CReturns the real (absolute) pathname for +self+ in the actual ;TI"filesystem.;To:RDoc::Markup::BlankLineo; ; [I"=Does not contain symlinks or useless dots, +..+ and +.+.;T@o; ; [I"CAll components of the pathname must exist when this method is ;TI" called.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"(p1 = v1);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]Mg5ff%2b-i.rinu[U:RDoc::AnyMethod[iI"+:ETI"Pathname#+;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"LAppends a pathname fragment to +self+ to produce a new Pathname object.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"4p1 = Pathname.new("/usr") # Pathname:/usr ;TI"=p2 = p1 + "bin/ruby" # Pathname:/usr/bin/ruby ;TI";p3 = p1 + "/etc/passwd" # Pathname:/etc/passwd ;TI" ;TI"# / is aliased to +. ;TI"=p4 = p1 / "bin/ruby" # Pathname:/usr/bin/ruby ;TI";p5 = p1 / "/etc/passwd" # Pathname:/etc/passwd ;T: @format0o; ; [I"PThis method doesn't access the file system; it is pure string manipulation.;T: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below000[[I"/;To;; [;@;0I" (other);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]'each_entry-i.rinu[U:RDoc::AnyMethod[iI"each_entry:ETI"Pathname#each_entry;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"LIterates over the entries (files and subdirectories) in the directory, ;TI"/yielding a Pathname object for each entry.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]-fgg stat-i.rinu[U:RDoc::AnyMethod[iI" stat:ETI"Pathname#stat;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"!Returns a File::Stat object.;To:RDoc::Markup::BlankLineo; ; [I"See File.stat.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]dpwd-c.rinu[U:RDoc::AnyMethod[iI"pwd:ETI"Pathname::pwd;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"9Returns the current working directory as a Pathname.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"Pathname.getwd ;TI"2 #=> # ;T: @format0o; ; [I"See Dir.getwd.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ] @:sub-i.rinu[U:RDoc::AnyMethod[iI"sub:ETI"Pathname#sub;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I":Return a pathname which is substituted by String#sub.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"+path1 = Pathname.new('/usr/bin/perl') ;TI"path1.sub('perl', 'ruby') ;TI"& #=> #;T: @format0: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I" (*args);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]3oo opendir-i.rinu[U:RDoc::AnyMethod[iI" opendir:ETI"Pathname#opendir;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"$Opens the referenced directory.;To:RDoc::Markup::BlankLineo; ; [I"See Dir.open.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ](]&& fnmatch-i.rinu[U:RDoc::AnyMethod[iI" fnmatch:ETI"Pathname#fnmatch;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"=Return +true+ if the receiver matches the given pattern.;To:RDoc::Markup::BlankLineo; ; [I"See File.fnmatch.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I"{pathname.fnmatch(pattern, [flags]) -> true or false pathname.fnmatch?(pattern, [flags]) -> true or false ;T0[[I" fnmatch?;T@ I"(p1, p2 = v2);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]444readable%3f-i.rinu[U:RDoc::AnyMethod[iI"readable?:ETI"Pathname#readable?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.readable?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ] I lchown-i.rinu[U:RDoc::AnyMethod[iI" lchown:ETI"Pathname#lchown;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"@Same as Pathname.chown, but does not follow symbolic links.;To:RDoc::Markup::BlankLineo; ; [I"See File.lchown.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I";pathname.lchown(owner_int, group_int) -> integer ;T0[I" (p1, p2);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]2jj sysopen-i.rinu[U:RDoc::AnyMethod[iI" sysopen:ETI"Pathname#sysopen;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See IO.sysopen.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I"1pathname.sysopen([mode, [perm]]) -> fixnum ;T0[I"(p1 = v1, p2 = v2);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]JWd mkpath-i.rinu[U:RDoc::AnyMethod[iI" mkpath:ETI"Pathname#mkpath;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"PCreates a full path, including any intermediate directories that don't yet ;TI" exist.;To:RDoc::Markup::BlankLineo; ; [I"/See FileUtils.mkpath and FileUtils.mkdir_p;T: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below000[I"(mode: nil);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]bJ(( pipe%3f-i.rinu[U:RDoc::AnyMethod[iI" pipe?:ETI"Pathname#pipe?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.pipe?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]㍞ rmtree-i.rinu[U:RDoc::AnyMethod[iI" rmtree:ETI"Pathname#rmtree;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"KRecursively deletes a directory, including all directories beneath it.;To:RDoc::Markup::BlankLineo; ; [I"See FileUtils.rm_r;T: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]5 find-i.rinu[U:RDoc::AnyMethod[iI" find:ETI"Pathname#find;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"JIterates over the directory tree in a depth first manner, yielding a ;TI"3Pathname for each file under "this" directory.;To:RDoc::Markup::BlankLineo; ; [I"0Returns an Enumerator if no block is given.;T@o; ; [I"QSince it is implemented by the standard library module Find, Find.prune can ;TI"&be used to control the traversal.;T@o; ; [I"FIf +self+ is +.+, yielded pathnames begin with a filename in the ;TI"!current directory, not +./+.;T@o; ; [I"See Find.find;T: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below00I" pathname;T[I"(ignore_error: true);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]a ctime-i.rinu[U:RDoc::AnyMethod[iI" ctime:ETI"Pathname#ctime;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"TReturns the last change time, using directory information, not the file itself.;To:RDoc::Markup::BlankLineo; ; [I"See File.ctime.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I" pathname.ctime -> time ;T0[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]e9 entries-i.rinu[U:RDoc::AnyMethod[iI" entries:ETI"Pathname#entries;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"OReturn the entries (files and subdirectories) in the directory, each as a ;TI"Pathname object.;To:RDoc::Markup::BlankLineo; ; [I"PThe results contains just the names in the directory, without any trailing ;TI""slashes or recursive look-up.;T@o:RDoc::Markup::Verbatim; [I"+pp Pathname.new('/usr/local').entries ;TI"#=> [#, ;TI"# #, ;TI"# #, ;TI"# #, ;TI"# #, ;TI"# #, ;TI"# #, ;TI"# #, ;TI"# #, ;TI"# #, ;TI"# #] ;T: @format0o; ; [I"QThe result may contain the current directory # and ;TI"6the parent directory #.;T@o; ; [I"(If you don't want +.+ and +..+ and ;TI"2want directories, consider Pathname#children.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@*FI" Pathname;TcRDoc::NormalClass00PK6 ] %3d%3d-i.rinu[U:RDoc::AnyMethod[iI"==:ETI"Pathname#==;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"JCompare this pathname with +other+. The comparison is string-based. ;TI"QBe aware that two different paths (foo.txt and ./foo.txt) ;TI" can refer to the same file.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[[I"===;T@ [I" eql?;T@ I" (p1);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]Z atime-i.rinu[U:RDoc::AnyMethod[iI" atime:ETI"Pathname#atime;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"/Returns the last access time for the file.;To:RDoc::Markup::BlankLineo; ; [I"See File.atime.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I" pathname.atime -> time ;T0[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]!oz..setgid%3f-i.rinu[U:RDoc::AnyMethod[iI" setgid?:ETI"Pathname#setgid?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.setgid?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ] _$$ lstat-i.rinu[U:RDoc::AnyMethod[iI" lstat:ETI"Pathname#lstat;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See File.lstat.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]yts(( zero%3f-i.rinu[U:RDoc::AnyMethod[iI" zero?:ETI"Pathname#zero?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"See FileTest.zero?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ]y>>%3c%3d%3e-i.rinu[U:RDoc::AnyMethod[iI"<=>:ETI"Pathname#<=>;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"AProvides a case-sensitive comparison operator for pathnames.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"7Pathname.new('/usr') <=> Pathname.new('/usr/bin') ;TI" #=> -1 ;TI";Pathname.new('/usr/bin') <=> Pathname.new('/usr/bin') ;TI" #=> 0 ;TI";Pathname.new('/usr/bin') <=> Pathname.new('/USR/BIN') ;TI" #=> 1 ;T: @format0o; ; [I"QIt will return +-1+, +0+ or +1+ depending on the value of the left argument ;TI"Nrelative to the right argument. Or it will return +nil+ if the arguments ;TI"are not comparable.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I" (p1);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]ejcfnmatch%3f-i.rinu[U:RDoc::AnyMethod[iI" fnmatch?:ETI"Pathname#fnmatch?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"=Return +true+ if the receiver matches the given pattern.;To:RDoc::Markup::BlankLineo; ; [I"See File.fnmatch.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"(p1, p2 = v2);T@FI" Pathname;TcRDoc::NormalClass0[@FI" fnmatch;TPK6 ]6ϒeach_line-i.rinu[U:RDoc::AnyMethod[iI"each_line:ETI"Pathname#each_line;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"MIterates over each line in the file and yields a String object for each.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I";pathname.each_line {|line| ... } pathname.each_line(sep=$/ [, open_args]) {|line| block } -> nil pathname.each_line(limit [, open_args]) {|line| block } -> nil pathname.each_line(sep, limit [, open_args]) {|line| block } -> nil pathname.each_line(...) -> an_enumerator ;T0[I" (p1 = v1, p2 = v2, p3 = v3);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]f open-i.rinu[U:RDoc::AnyMethod[iI" open:ETI"Pathname#open;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"+Opens the file for reading or writing.;To:RDoc::Markup::BlankLineo; ; [I"See File.open.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I" pathname.open() pathname.open(mode="r" [, opt]) -> file pathname.open([mode [, perm]] [, opt]) -> file pathname.open(mode="r" [, opt]) {|file| block } -> obj pathname.open([mode [, perm]] [, opt]) {|file| block } -> obj ;T0[I" (p1 = v1, p2 = v2, p3 = v3);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]@* utime-i.rinu[U:RDoc::AnyMethod[iI" utime:ETI"Pathname#utime;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I":Update the access and modification times of the file.;To:RDoc::Markup::BlankLineo; ; [I"See File.utime.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I" (p1, p2);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]absolute%3f-i.rinu[U:RDoc::AnyMethod[iI"absolute?:ETI"Pathname#absolute?;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"=Predicate method for testing whether a path is absolute.;To:RDoc::Markup::BlankLineo; ; [I";It returns +true+ if the pathname begins with a slash.;T@o:RDoc::Markup::Verbatim; [ I""p = Pathname.new('/im/sure') ;TI"p.absolute? ;TI" #=> true ;TI" ;TI"%p = Pathname.new('not/so/sure') ;TI"p.absolute? ;TI" #=> false;T: @format0: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK6 ];/ lchmod-i.rinu[U:RDoc::AnyMethod[iI" lchmod:ETI"Pathname#lchmod;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"@Same as Pathname.chmod, but does not follow symbolic links.;To:RDoc::Markup::BlankLineo; ; [I"See File.lchmod.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I"+pathname.lchmod(mode_int) -> integer ;T0[I" (p1);T@FI" Pathname;TcRDoc::NormalClass00PK6 ]G^VVmountpoint%3f-i.rinu[U:RDoc::AnyMethod[iI"mountpoint?:ETI"Pathname#mountpoint?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"5Returns +true+ if +self+ points to a mountpoint.;T: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK|]1birthtime-i.rinu[U:RDoc::AnyMethod[iI"birthtime:ETI"Pathname#birthtime;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"*Returns the birth time for the file. ;TI"HIf the platform doesn't have birthtime, raises NotImplementedError.;To:RDoc::Markup::BlankLineo; ; [I"See File.birthtime.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below0I" pathname.birthtime -> time ;T0[I"();T@FI" Pathname;TcRDoc::NormalClass00PK|]ġל`` glob-i.rinu[U:RDoc::AnyMethod[iI" glob:ETI"Pathname#glob;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"(Returns or yields Pathname objects.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"*Pathname("ruby-2.4.2").glob("R*.md") ;TI"Q#=> [#, #] ;T: @format0o; ; [I"See Dir.glob. ;TI">This method uses the +base+ keyword argument of Dir.glob.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"(p1, p2 = v2);T@FI" Pathname;TcRDoc::NormalClass00PK|]S;|| empty%3f-i.rinu[U:RDoc::AnyMethod[iI" empty?:ETI"Pathname#empty?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Tests the file is empty.;To:RDoc::Markup::BlankLineo; ; [I"(See Dir#empty? and FileTest.empty?.;T: @fileI"ext/pathname/pathname.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Pathname;TcRDoc::NormalClass00PK|]%2f-i.rinu[U:RDoc::AnyMethod[iI"/:ETI"Pathname#/;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"!ext/pathname/lib/pathname.rb;T:0@omit_headings_from_table_of_contents_below000[I" (other);T@ FI" Pathname;TcRDoc::NormalClass0[@FI"+;TPK6 ]w:realdirpath-i.rinu[PK6 ]=+II^executable_real%3f-i.rinu[PK6 ]DŽ11symlink%3f-i.rinu[PK6 ]Е644^each_child-i.rinu[PK6 ]F?FF world_readable%3f-i.rinu[PK6 ]BTA ] to_path-i.rinu[PK6 ]lb?CCQreadable_real%3f-i.rinu[PK6 ]D97 ascend-i.rinu[PK6 ]> ftype-i.rinu[PK6 ]a chown-i.rinu[PK6 ]>::executable%3f-i.rinu[PK6 ]?A..sticky%3f-i.rinu[PK6 ]@ S++ nexist%3f-i.rinu[PK6 ]4Jqq extname-i.rinu[PK6 ]P] glob-c.rinu[PK6 ]hblockdev%3f-i.rinu[PK6 ].77?directory%3f-i.rinu[PK6 ]>tt NAmkdir-i.rinu[PK6 ]mdBrelative_path_from-i.rinu[PK6 ][%-cc Frename-i.rinu[PK6 ]¢!44rHgrpowned%3f-i.rinu[PK6 ]{ Isplit-i.rinu[PK6 ]or Kjoin-i.rinu[PK6 ]PHH Nsub_ext-i.rinu[PK6 ]%% $Qsize-i.rinu[PK6 ]~~ Rtruncate-i.rinu[PK6 ]pFF=Tworld_writable%3f-i.rinu[PK6 ]G Umtime-i.rinu[PK6 ]u11Wchardev%3f-i.rinu[PK6 ]Ws  Yto_s-i.rinu[PK6 ]va, I[delete-i.rinu[PK6 ]=2..]socket%3f-i.rinu[PK6 ]%aQjj ~^readlink-i.rinu[PK6 ]Z %`write-i.rinu[PK6 ]5O4 Qbbinread-i.rinu[PK6 ]FHmm jdrmdir-i.rinu[PK6 ] fbinwrite-i.rinu[PK6 ]|ٟ%%jhcdesc-Pathname.rinu[PK6 ]*+G̓ hdirname-i.rinu[PK6 ](( 'size%3f-i.rinu[PK6 ] descend-i.rinu[PK6 ]/44rwritable%3f-i.rinu[PK6 ]7 read-i.rinu[PK6 ]&2each_filename-i.rinu[PK6 ]TH..osetuid%3f-i.rinu[PK6 ]^Yz۞make_symlink-i.rinu[PK6 ]_(7pprelative%3f-i.rinu[PK6 ]Xw++ eowned%3f-i.rinu[PK6 ]ئ~~ ͤtaint-i.rinu[PK6 ]/Rcleanpath-i.rinu[PK6 ]aE ǩgetwd-c.rinu[PK6 ] %3d%3d%3d-i.rinu[PK6 ]G@-@@ readlines-i.rinu[PK6 ]=Po11 realpath-i.rinu[PK6 ]Mg5ff%2b-i.rinu[PK6 ]'each_entry-i.rinu[PK6 ]-fgg mstat-i.rinu[PK6 ]d pwd-c.rinu[PK6 ] @:5sub-i.rinu[PK6 ]3oo qopendir-i.rinu[PK6 ](]&& fnmatch-i.rinu[PK6 ]444~readable%3f-i.rinu[PK6 ] I lchown-i.rinu[PK6 ]2jj sysopen-i.rinu[PK6 ]JWd mkpath-i.rinu[PK6 ]bJ(( pipe%3f-i.rinu[PK6 ]㍞ rmtree-i.rinu[PK6 ]5 find-i.rinu[PK6 ]a Bctime-i.rinu[PK6 ]e9 :entries-i.rinu[PK6 ]  %3d%3d-i.rinu[PK6 ]Z Catime-i.rinu[PK6 ]!oz..setgid%3f-i.rinu[PK6 ] _$$ lstat-i.rinu[PK6 ]yts(( zero%3f-i.rinu[PK6 ]y>>D%3c%3d%3e-i.rinu[PK6 ]ejcfnmatch%3f-i.rinu[PK6 ]6ϒeach_line-i.rinu[PK6 ]f open-i.rinu[PK6 ]@* ~utime-i.rinu[PK6 ]Aabsolute%3f-i.rinu[PK6 ];/ lchmod-i.rinu[PK6 ]G^VVmountpoint%3f-i.rinu[PK|]1birthtime-i.rinu[PK|]ġל`` glob-i.rinu[PK|]S;|| Tempty%3f-i.rinu[PK|] %2f-i.rinu[PKeePB