Project

General

Profile

Bug #4751 ยป 0001-Adding-documentation-for-FileUtils.patch

kleb (Bil Kleb), 05/21/2011 10:51 AM

View differences:

lib/fileutils.rb
#
# 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-1/1)