Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions lib/fileutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,14 @@ def pwd
#
# Changes the current directory to the directory +dir+.
#
# If this method is called with block, resumes to the old
# working directory after the block execution finished.
# If this method is called with block, resumes to the previous
# working directory after the block execution has finished.
#
# FileUtils.cd('/', :verbose => true) # chdir and report it
# FileUtils.cd('/') # change directory
#
# FileUtils.cd('/') do # chdir
# FileUtils.cd('/', :verbose => true) # change directory and report it
#
# FileUtils.cd('/') do # change directory
# # ... # do something
# end # return to original directory
#
Expand Down