5件ヒット
[1-5件を表示]
(0.018秒)
別のキーワード
種類
- 特異メソッド (3)
- インスタンスメソッド (2)
ライブラリ
キーワード
-
def
_ system _ command (1) -
find
_ system _ command (1) -
install
_ system _ commands (1) - system (1)
-
undef
_ system _ command (1)
検索結果
先頭5件
- Shell
:: CommandProcessor . install _ system _ commands(prefix = "sys _ ") -> () - Shell
:: CommandProcessor # system(command , *opts) -> Shell :: SystemCommand - Shell
:: CommandProcessor # find _ system _ command(command) - Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () - Shell
:: CommandProcessor . undef _ system _ command(command) -> self
-
Shell
:: CommandProcessor . install _ system _ commands(prefix = "sys _ ") -> () (27625.0) -
全てのシステムコマンドをメソッドとして定義します。
全てのシステムコマンドをメソッドとして定義します。
既に定義されているコマンドを再定義することはありません。
デフォルトでは全てのコマンドに "sys_" というプレフィクスが付きます。
また、メソッド名として使用できない文字は全て "_" に置換してメソッドを定義します。
このメソッドの実行中に発生した例外は単に無視されます。
@param prefix プレフィクスを指定します。 -
Shell
:: CommandProcessor # system(command , *opts) -> Shell :: SystemCommand (27604.0) -
command を実行する.
command を実行する.
@param command 実行するコマンドのパスを文字列で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_command("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT -
Shell
:: CommandProcessor # find _ system _ command(command) (27304.0) -
@todo
@todo -
Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () (27304.0) -
@todo
@todo
与えられたコマンドをメソッドとして定義します。
@param command 定義したいコマンドを指定します。
@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。 -
Shell
:: CommandProcessor . undef _ system _ command(command) -> self (27304.0) -
与えられたコマンドを削除します。
与えられたコマンドを削除します。
@param command 削除したいコマンド名を指定します。