method

chdir

ruby latest stable - Class: Shell
chdir(path = nil, verbose = @verbose)
public

Creates a Shell object which current directory is set to path.

If a block is given, it restores the current directory when the block ends.

If called as iterator, it restores the current directory when the block ends.