From 6d8e471bf4083bb11c11f12d0e019b19a2818cee Mon Sep 17 00:00:00 2001 From: Bil Kleb Date: Fri, 20 May 2011 19:57:36 -0400 Subject: [PATCH] Adding documentation for FileUtils --- lib/fileutils.rb | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/lib/fileutils.rb b/lib/fileutils.rb index de79f84..d4213dd 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -115,6 +115,10 @@ module FileUtils # # FileUtils.cd('/', :verbose => true) # chdir and report it # + # FileUtils.cd('/') do # chdir + # [...] # do something + # end # return to original directory + # def cd(dir, options = {}, &block) # :yield: dir fu_check_options options, OPT_TABLE['cd'] fu_output_message "cd #{dir}" if options[:verbose] -- 1.6.5.1