method

chdir

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

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