method

pushdir

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

Pushes the current directory to the directory stack, changing the current directory to path.

If path is omitted, it exchanges its current directory and the top of its directory stack.

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