4件ヒット
[1-4件を表示]
(0.107秒)
ライブラリ
-
irb
/ cmd / pushws (1) -
net
/ pop (1) - shell (2)
クラス
-
IRB
:: ExtendCommand :: PopWorkspace (1) -
Net
:: POP3 (1) - Shell (2)
キーワード
- execute (1)
- popdir (1)
-
set
_ debug _ output (1)
検索結果
先頭4件
-
Shell
# popd -> () (72625.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
# popdir -> () (36625.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" -
Net
:: POP3 # set _ debug _ output(f) -> () (9220.0) -
デバッグ用の出力 f をセットします。
デバッグ用の出力 f をセットします。
このメソッドは深刻なセキュリティホールの原因となりえます。
デバッグ以外の用途では使わないでください。
f は << メソッドを持っているオブジェクトでなければなりません。
使用例:
require 'net/pop'
pop = Net::POP3.new('pop.example.com', 110)
pop.set_debug_output $stderr
pop.start('YourAccount', 'YourPassword') {
p pop.n_bytes
}
実行結果:
POP sessi... -
IRB
:: ExtendCommand :: PopWorkspace # execute(*obj) -> [IRB :: WorkSpace] (9052.0) -
UNIX シェルコマンドの popd と同じです。
UNIX シェルコマンドの popd と同じです。
@param obj 使用しません。