ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- prune-c.ri000064400000001123152346264200006452 0ustar00U:RDoc::AnyMethod[iI" prune:ETI"Find::prune;TT: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"LSkips the current file or directory, restarting the loop with the next ;TI"Kentry. If the current file is a directory, that directory will not be ;TI"Krecursively entered. Meaningful only within the block associated with ;TI"Find::find.;To:RDoc::Markup::BlankLineo; ; [I"8See the +Find+ module documentation for an example.;T: @fileI"lib/find.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Find;TcRDoc::NormalModule00find-c.ri000064400000001123152346264200006241 0ustar00U:RDoc::AnyMethod[iI" find:ETI"Find::find;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"QCalls the associated block with the name of every file and directory listed ;TI"Gas arguments, then recursively on their subdirectories, and so on.;To:RDoc::Markup::BlankLineo; ; [I"0Returns an enumerator if no block is given.;T@o; ; [I"8See the +Find+ module documentation for an example.;T: @fileI"lib/find.rb;T:0@omit_headings_from_table_of_contents_below00I" path;T[I"!(*paths, ignore_error: true);T@FI" Find;TcRDoc::NormalModule00prune-i.ri000064400000001122152346264200006457 0ustar00U:RDoc::AnyMethod[iI" prune:ETI"Find#prune;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"LSkips the current file or directory, restarting the loop with the next ;TI"Kentry. If the current file is a directory, that directory will not be ;TI"Krecursively entered. Meaningful only within the block associated with ;TI"Find::find.;To:RDoc::Markup::BlankLineo; ; [I"8See the +Find+ module documentation for an example.;T: @fileI"lib/find.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Find;TcRDoc::NormalModule00cdesc-Find.ri000064400000002157152346264200007050 0ustar00U:RDoc::NormalModule[iI" Find:ET@0o:RDoc::Markup::Document: @parts[o;;[ o:RDoc::Markup::Paragraph;[I"NThe +Find+ module supports the top-down traversal of a set of file paths.;To:RDoc::Markup::BlankLineo; ;[I"LFor example, to total the size of all files under your home directory, ;TI">ignoring anything in a "dot" directory (e.g. $HOME/.ssh):;T@o:RDoc::Markup::Verbatim;[I"require 'find' ;TI" ;TI"total_size = 0 ;TI" ;TI"&Find.find(ENV["HOME"]) do |path| ;TI"$ if FileTest.directory?(path) ;TI"1 if File.basename(path).start_with?('.') ;TI"J Find.prune # Don't look any further into this directory. ;TI" else ;TI" next ;TI" end ;TI" else ;TI"+ total_size += FileTest.size(path) ;TI" end ;TI"end;T: @format0: @fileI"lib/find.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[[[[[I" class;T[[: public[[:protected[[: private[[I" find;TI"lib/find.rb;T[I" prune;T@5[I" instance;T[[;[[;[[;[[@4@5[@7@5[[U:RDoc::Context::Section[i0o;;[; 0;0[I"lib/find.rb;T@%cRDoc::TopLevelfind-i.ri000064400000001122152346264200006246 0ustar00U:RDoc::AnyMethod[iI" find:ETI"Find#find;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"QCalls the associated block with the name of every file and directory listed ;TI"Gas arguments, then recursively on their subdirectories, and so on.;To:RDoc::Markup::BlankLineo; ; [I"0Returns an enumerator if no block is given.;T@o; ; [I"8See the +Find+ module documentation for an example.;T: @fileI"lib/find.rb;T:0@omit_headings_from_table_of_contents_below00I" path;T[I"!(*paths, ignore_error: true);T@FI" Find;TcRDoc::NormalModule00