るりまサーチ

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

別のキーワード

  1. _builtin to_proc
  2. _builtin proc
  3. proc curry
  4. httpserver mount_proc
  5. readline completion_proc

モジュール

検索結果

<< 1 2 3 ... > >>

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

@todo

@todo

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::CommandProcessor (12000.0)

shell/command-processor (12000.0)

Shell で使用可能なコマンドの大半を定義するライブラリです。

Shell で使用可能なコマンドの大半を定義するライブラリです。

Gem::CommandManager#process_args(args) -> () (9100.0)

引数 args を処理して gem コマンドを実行するために必要な処理を行います。

引数 args を処理して gem コマンドを実行するために必要な処理を行います。

@param args コマンドラインから受け取った引数を指定します。

Shell.undef_system_command(command) -> Shell::CommandProcessor (6436.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::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...
<< 1 2 3 ... > >>