method

cd

ruby latest stable - Class: Bundler::FileUtils

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

cd(dir, verbose: nil)
private

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.

Bundler::FileUtils.cd('/', :verbose => true)   # chdir and report it

Bundler::FileUtils.cd('/') do  # chdir
  # ...               # do something
end                   # return to original directory