12件ヒット
[1-12件を表示]
(0.046秒)
ライブラリ
- shell (6)
-
shell
/ command-processor (6)
クラス
- Shell (6)
-
Shell
:: CommandProcessor (6)
検索結果
先頭2件
-
Shell
. def _ system _ command(command , path = command) -> nil (24339.0) -
Shell のメソッドとして command を登録します.
...す.
注) コマンドを定義しなくとも直接実行できる Shell#system コマンドもあります.
@param command Shell のメソッドとして定義するコマンドを文字列で指定します。
@param path command のパスを指定します。
指定しない場合......はcommand と同じになります。
例)
require 'shell'
Shell.def_system_command "ls"
# ls を定義
Shell.def_system_command "sys_sort", "sort"
# sortコマンドをsys_sortとして定義
sh = Shell.new
sh.transact {
ls.each { |l|
puts l
}
(ls("-l") | sys_sor... -
Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () (24315.0) -
@todo
...@todo
与えられたコマンドをメソッドとして定義します。
@param command 定義したいコマンドを指定します。
@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。...