3件ヒット
[1-3件を表示]
(0.108秒)
種類
- インスタンスメソッド (2)
- 特異メソッド (1)
ライブラリ
-
shell
/ command-processor (1) -
shell
/ filter (2)
クラス
-
Shell
:: CommandProcessor (1) -
Shell
:: Filter (2)
キーワード
-
add
_ delegate _ command _ to _ shell (1) - | (1)
検索結果
先頭3件
-
Shell
:: CommandProcessor . add _ delegate _ command _ to _ shell(id) (72922.0) -
@todo
@todo
Shell 自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。
@param id メソッド名を指定します。 -
Shell
:: Filter # to _ s -> String (72394.0) -
実行結果を文字列で返します。
実行結果を文字列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
} -
Shell
:: Filter # |(filter) -> object (18463.0) -
パイプ結合を filter に対して行います。
パイプ結合を filter に対して行います。
@param filter Shell::Filter オブジェクトを指定します。
@return filter を返します。
使用例
require 'shell'
Shell.def_system_command("tail")
Shell.def_system_command("head")
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
i = 1
while i <= (cat("/etc/passwd") | wc(...