最速Rubyリファレンスマニュアル検索!
すべて(6)
2.1.0(1)
2.2.0(1)
2.3.0(1)
2.4.0(1)
2.5.0(1)
2.6.0(1)
6件ヒット
[1-6件を表示]
(0.017秒)
トップページ
>
:
Dir
>
:popdir
別のキーワード
dir chdir
dir open
dir foreach
dir each_child
rake original_dir
ライブラリ
shell
(6)
クラス
Shell
(6)
検索結果
先頭1件
Shell
#
popdir -> ()
Shell
#
popdir -> ()
(18201.0)
2.1.0
2.2.0
2.3.0
2.4.0
2.5.0
2.6.0
インスタンスメソッド
ディレクトリスタックからポップし, それをカレントディレクトリにする.
ディレクトリスタックからポップし, それをカレントディレクトリにする.
動作例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.pushd("/tmp")
p sh.cwd #=> "/tmp"
sh.pushd("/usr")
p sh.cwd #=> "/usr"
sh.popd
p sh.cwd #=> "/tmp"
Shell