498件ヒット
[1-100件を表示]
(0.102秒)
ライブラリ
- ビルトイン (168)
-
drb
/ extservm (24) - fileutils (12)
-
irb
/ cmd / nop (24) -
irb
/ extend-command (72) -
rubygems
/ command (84) -
rubygems
/ command _ manager (12) -
rubygems
/ ext / builder (12) - shell (24)
-
shell
/ command-processor (60) -
shell
/ system-command (6)
クラス
-
DRb
:: ExtServManager (24) -
Gem
:: Command (84) -
Gem
:: CommandManager (12) -
Gem
:: Ext :: Builder (12) - IO (168)
-
IRB
:: ExtendCommand :: Nop (24) - Shell (24)
-
Shell
:: CommandProcessor (60) -
Shell
:: SystemCommand (6)
モジュール
- FileUtils (12)
-
IRB
:: ContextExtender (24) -
IRB
:: ExtendCommandBundle (48)
キーワード
-
add
_ common _ option (12) -
add
_ delegate _ command _ to _ shell (6) -
add
_ specific _ extra _ args (12) -
alias
_ command (18) - command= (12)
- commands (12)
-
def
_ builtin _ commands (6) -
def
_ extend _ command (24) -
def
_ system _ command (12) - execute (12)
-
extend
_ object (12) -
extra
_ args (12) -
extra
_ args= (12) - initialize (6)
-
install
_ builtin _ commands (6) -
install
_ extend _ commands (24) -
install
_ system _ commands (12) - instance (12)
-
irb
_ original _ method _ name (12) -
method
_ added (6) - new (18)
- popen (168)
- run (12)
-
specific
_ extra _ args (12) -
specific
_ extra _ args _ hash (12) -
undef
_ system _ command (12)
検索結果
先頭5件
- DRb
:: ExtServManager . command -> { String => String|[String] } - IRB
:: ContextExtender . install _ extend _ commands -> object - IRB
:: ContextExtender . def _ extend _ command(cmd _ name , load _ file , *aliases) -> object - IRB
:: ExtendCommandBundle . install _ extend _ commands -> object - IRB
:: ExtendCommandBundle . def _ extend _ command(cmd _ name , cmd _ class , load _ file = nil , *aliases) -> object
-
DRb
:: ExtServManager . command -> { String => String|[String] } (21408.0) -
サービスを起動するためのコマンドを指定するための Hash を 返します。
...のサービスを起動するためのコマンドです。
この Hash を変更することでサービスを定義します。
DRb::ExtServManager.command= で Hash 自体を
変更することでも同じことができます。
コマンドは文字列、もしくは文字列の配列で指... -
IRB
:: ContextExtender . install _ extend _ commands -> object (21213.0) -
定義済みの拡張を読み込みます。
...::Context で以下のメソッドが利用できるようになります。
* eval_history=
* use_tracer=
* math_mode=
* use_loader=
* save_history=
irb/extend-command が require された時にライブラリ内部で自動的
に実行されます。
@see IRB::ContextExtender.def_extend_... -
IRB
:: ContextExtender . def _ extend _ command(cmd _ name , load _ file , *aliases) -> object (21202.0) -
IRB::Context に cmd_name で指定したメソッドが実行できるように拡張 します。
...IRB::Context に cmd_name で指定したメソッドが実行できるように拡張
します。
@param cmd_name メソッド名を Symbol で指定します。
IRB::Context クラスのインスタンスメソッドとして定
義してある必要がありま... -
IRB
:: ExtendCommandBundle . install _ extend _ commands -> object (18207.0) -
定義済みの拡張を読み込みます。
...ぞれ 1 つだけ抜粋)
* irb_current_working_workspace
* irb_change_workspace
* irb_workspaces
* irb_push_workspace
* irb_pop_workspace
* irb_load
* irb_require
* irb_source
* irb
* irb_jobs
* irb_fg
* irb_kill
* irb_help
irb/extend-command が require された時にライブラ......リ内部で自動的
に実行されます。
@see IRB::ExtendCommandBundle.install_extend_commands... -
IRB
:: ExtendCommandBundle . def _ extend _ command(cmd _ name , cmd _ class , load _ file = nil , *aliases) -> object (18202.0) -
irb に cmd_name で指定したメソッドが実行できるように拡張します。
...cute メソッドとして定
義してある必要があります。
@param cmd_class 指定した拡張が定義されたクラス名を Symbol、
String、Class のいずれかで指定します。
なお、このクラスは IRB::ExtendCommand......す。複数指定する事ができます。フラグは
IRB::ExtendCommandBundle::NO_OVERRIDE、
IRB::ExtendCommandBundle::OVERRIDE_PRIVATE_ONLY、
IRB::ExtendCommandBundle::OVERRIDE_ALL のいずれか
を指定します。... -
Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () (15422.0) -
@todo
...@todo
与えられたコマンドをメソッドとして定義します。
@param command 定義したいコマンドを指定します。
@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。... -
Shell
:: CommandProcessor . def _ builtin _ commands(delegation _ class , commands _ specs) -> () (15401.0) -
@todo
...@todo
@param delegation_class 処理を委譲したいクラスかモジュールを指定します。
@param commands_specs コマンドの仕様を文字列の配列で指定します。
[[コマンド名, [引数1, 引数2, ...]], ...]... -
Shell
:: CommandProcessor . undef _ system _ command(command) -> self (15309.0) -
与えられたコマンドを削除します。
...与えられたコマンドを削除します。
@param command 削除したいコマンド名を指定します。... -
Shell
:: CommandProcessor . add _ delegate _ command _ to _ shell(id) (15202.0) -
@todo
...@todo
Shell 自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。
@param id メソッド名を指定します。... -
Shell
:: CommandProcessor . install _ builtin _ commands -> () (15201.0) -
ビルトインコマンドを定義します。
ビルトインコマンドを定義します。 -
Shell
:: CommandProcessor . install _ system _ commands(prefix = "sys _ ") -> () (15201.0) -
全てのシステムコマンドをメソッドとして定義します。
全てのシステムコマンドをメソッドとして定義します。
既に定義されているコマンドを再定義することはありません。
デフォルトでは全てのコマンドに "sys_" というプレフィクスが付きます。
また、メソッド名として使用できない文字は全て "_" に置換してメソッドを定義します。
このメソッドの実行中に発生した例外は単に無視されます。
@param prefix プレフィクスを指定します。 -
Shell
. def _ system _ command(command , path = command) -> nil (12450.0) -
Shell のメソッドとして command を登録します.
...ell のメソッドとして command を登録します.
OS上のコマンドを実行するにはまず, Shellのメソッドとして定義します.
注) コマンドを定義しなくとも直接実行できる 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_sort("-k 5")).each {|l|
puts l
}
}...