18件ヒット
[1-18件を表示]
(0.322秒)
ライブラリ
- shell (6)
-
shell
/ command-processor (12)
クラス
- Shell (6)
-
Shell
:: CommandProcessor (12)
検索結果
先頭3件
-
Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () (21102.0) -
@todo
@todo
与えられたコマンドをメソッドとして定義します。
@param command 定義したいコマンドを指定します。
@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。 -
Shell
:: CommandProcessor . undef _ system _ command(command) -> self (9101.0) -
与えられたコマンドを削除します。
与えられたコマンドを削除します。
@param command 削除したいコマンド名を指定します。 -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (6208.0) -
commandを削除します.
...@param command 削除するコマンドの文字列を指定します。
動作例:
require 'shell'
Shell.def_system_command("ls")
# ls を定義
Shell.undef_system_command("ls")
# ls を 削除
sh = Shell.new
begin
sh.transact {
ls("-l").each {|l|
puts l...