るりまサーチ

最速Rubyリファレンスマニュアル検索!
516件ヒット [1-100件を表示] (0.069秒)
トップページ > クエリ:command[x] > クエリ:CommandProcessor[x]

別のキーワード

  1. shell/builtin-command new
  2. shell/builtin-command each
  3. rubygems/command command
  4. irb/extend-command def_extend_command
  5. irb/extend-command install_extend_commands

検索結果

<< 1 2 3 ... > >>

Shell::CommandProcessor (24000.0)

Shell::CommandProcessor.def_system_command(command, path = command) -> () (12321.0)

@todo

...@todo

与えられたコマンドをメソッドとして定義します。

@param command 定義したいコマンドを指定します。

@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。...

Shell::CommandProcessor.alias_command(alias, command, *opts) -> self (12210.0)

@todo

...@todo

@param alias エイリアスの名前を指定します。

@param command コマンド名を指定します。

@param opts コマンドに与えるオプションを指定します。

@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。...

Shell::CommandProcessor.alias_command(alias, command, *opts) { ... } -> self (12210.0)

@todo

...@todo

@param alias エイリアスの名前を指定します。

@param command コマンド名を指定します。

@param opts コマンドに与えるオプションを指定します。

@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。...

Shell::CommandProcessor.undef_system_command(command) -> self (12208.0)

与えられたコマンドを削除します。

...与えられたコマンドを削除します。

@param command 削除したいコマンド名を指定します。...

絞り込み条件を変える

Shell::CommandProcessor#find_system_command(command) (12202.0)

@todo

@todo

Shell::CommandProcessor.def_builtin_commands(delegation_class, commands_specs) -> () (12200.0)

@todo

...@todo

@param delegation_class 処理を委譲したいクラスかモジュールを指定します。

@param commands_specs コマンドの仕様を文字列の配列で指定します。
[[コマンド名, [引数1, 引数2, ...]], ...]...

Shell::CommandProcessor.add_delegate_command_to_shell(id) (12101.0)

@todo

@todo

Shell 自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。

@param id メソッド名を指定します。

Shell::CommandProcessor.unalias_command(alias) -> self (12101.0)

エイリアスを削除します。

エイリアスを削除します。

@param alias 削除したいエイリアスを指定します。

Shell::CommandProcessor.install_builtin_commands -> () (12100.0)

ビルトインコマンドを定義します。

ビルトインコマンドを定義します。

絞り込み条件を変える

Shell::CommandProcessor.install_system_commands(prefix = "sys_") -> () (12100.0)

全てのシステムコマンドをメソッドとして定義します。

全てのシステムコマンドをメソッドとして定義します。

既に定義されているコマンドを再定義することはありません。
デフォルトでは全てのコマンドに "sys_" というプレフィクスが付きます。
また、メソッド名として使用できない文字は全て "_" に置換してメソッドを定義します。
このメソッドの実行中に発生した例外は単に無視されます。

@param prefix プレフィクスを指定します。

Shell.undef_system_command(command) -> Shell::CommandProcessor (6437.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...

Shell#command_processor -> Shell::CommandProcessor (6302.0)

@todo

@todo

Shell::CommandProcessor#system(command, *opts) -> Shell::SystemCommand (6235.0)

command を実行する.

...
command
を実行する.

@param command 実行するコマンドのパスを文字列で指定します。

@param opts command のオプションを文字列で指定します。複数可。

使用例:

require 'shell'
Shell.verbose = false
sh = Shell.new

print sh.system("ls", "-l")
S...
...hell.def_system_command("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT...

Shell::CommandProcessor#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (6108.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...Kernel.#test や FileTest のメソッドに処理を委譲します。

@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。

@para...

絞り込み条件を変える

Shell::CommandProcessor#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (6108.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...Kernel.#test や FileTest のメソッドに処理を委譲します。

@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。

@para...

Shell::CommandProcessor.alias_map -> Hash (6032.0)

Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。

...Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。...
<< 1 2 3 ... > >>