90件ヒット
[1-90件を表示]
(0.012秒)
別のキーワード
ライブラリ
- shell (6)
-
shell
/ command-processor (84)
クラス
- Shell (6)
-
Shell
:: CommandProcessor (84)
キーワード
-
add
_ delegate _ command _ to _ shell (6) -
alias
_ command (12) -
alias
_ map (6) -
def
_ builtin _ commands (6) -
def
_ system _ command (6) - initialize (6)
-
install
_ builtin _ commands (6) -
install
_ system _ commands (6) -
method
_ added (6) - new (6)
-
run
_ config (6) -
unalias
_ command (6) -
undef
_ system _ command (12)
検索結果
先頭5件
- Shell
:: CommandProcessor . alias _ map -> Hash - Shell
:: CommandProcessor . add _ delegate _ command _ to _ shell(id) - Shell
:: CommandProcessor . alias _ command(alias , command , *opts) -> self - Shell
:: CommandProcessor . alias _ command(alias , command , *opts) { . . . } -> self - Shell
:: CommandProcessor . def _ builtin _ commands(delegation _ class , commands _ specs) -> ()
-
Shell
:: CommandProcessor . alias _ map -> Hash (3017.0) -
Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。
...Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。... -
Shell
:: CommandProcessor . add _ delegate _ command _ to _ shell(id) (3001.0) -
@todo
@todo
Shell 自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。
@param id メソッド名を指定します。 -
Shell
:: CommandProcessor . alias _ command(alias , command , *opts) -> self (3001.0) -
@todo
@todo
@param alias エイリアスの名前を指定します。
@param command コマンド名を指定します。
@param opts コマンドに与えるオプションを指定します。
@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。 -
Shell
:: CommandProcessor . alias _ command(alias , command , *opts) { . . . } -> self (3001.0) -
@todo
@todo
@param alias エイリアスの名前を指定します。
@param command コマンド名を指定します。
@param opts コマンドに与えるオプションを指定します。
@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。 -
Shell
:: CommandProcessor . def _ builtin _ commands(delegation _ class , commands _ specs) -> () (3001.0) -
@todo
@todo
@param delegation_class 処理を委譲したいクラスかモジュールを指定します。
@param commands_specs コマンドの仕様を文字列の配列で指定します。
[[コマンド名, [引数1, 引数2, ...]], ...] -
Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () (3001.0) -
@todo
@todo
与えられたコマンドをメソッドとして定義します。
@param command 定義したいコマンドを指定します。
@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。 -
Shell
:: CommandProcessor . initialize -> () (3001.0) -
@todo
@todo
このクラスを初期化します。 -
Shell
:: CommandProcessor . install _ builtin _ commands -> () (3001.0) -
ビルトインコマンドを定義します。
ビルトインコマンドを定義します。 -
Shell
:: CommandProcessor . install _ system _ commands(prefix = "sys _ ") -> () (3001.0) -
全てのシステムコマンドをメソッドとして定義します。
全てのシステムコマンドをメソッドとして定義します。
既に定義されているコマンドを再定義することはありません。
デフォルトでは全てのコマンドに "sys_" というプレフィクスが付きます。
また、メソッド名として使用できない文字は全て "_" に置換してメソッドを定義します。
このメソッドの実行中に発生した例外は単に無視されます。
@param prefix プレフィクスを指定します。 -
Shell
:: CommandProcessor . method _ added(id) (3001.0) -
@todo このクラスに定義されたメソッドを Shell にも定義するためのフックです。
@todo
このクラスに定義されたメソッドを Shell にも定義するためのフックです。
@param id メソッド名を指定します。 -
Shell
:: CommandProcessor . new(shell) (3001.0) -
@todo
@todo -
Shell
:: CommandProcessor . run _ config -> () (3001.0) -
ユーザのホームディレクトリに "~/.rb_shell" というファイルが存在すれば、それを Kernel.#load します。
ユーザのホームディレクトリに "~/.rb_shell" というファイルが存在すれば、それを Kernel.#load します。
存在しない時は何もしません。 -
Shell
:: CommandProcessor . unalias _ command(alias) -> self (3001.0) -
エイリアスを削除します。
エイリアスを削除します。
@param alias 削除したいエイリアスを指定します。 -
Shell
:: CommandProcessor . undef _ system _ command(command) -> self (3001.0) -
与えられたコマンドを削除します。
与えられたコマンドを削除します。
@param command 削除したいコマンド名を指定します。 -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (102.0) -
commandを削除します.
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
}
}
rescue NameError => err
puts ...