48件ヒット
[1-48件を表示]
(0.017秒)
種類
- インスタンスメソッド (42)
- 特異メソッド (6)
クラス
キーワード
-
check
_ point (6) -
def
_ builtin _ commands (6) - directory? (6)
- echo (6)
- executable? (6)
-
executable
_ real? (6) -
finish
_ all _ jobs (6) - transact (6)
検索結果
先頭5件
-
Shell
:: CommandProcessor # check _ point (6102.0) -
@todo
@todo -
Shell
:: CommandProcessor # directory?(file) -> bool (6102.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory?... -
Shell
:: CommandProcessor # echo(*strings) -> Shell :: Filter (6102.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...rings シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee")... -
Shell
:: CommandProcessor # executable?(file) -> bool (6102.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable?... -
Shell
:: CommandProcessor # executable _ real?(file) -> bool (6102.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable_real?... -
Shell
:: CommandProcessor # finish _ all _ jobs (3002.0) -
@todo
@todo -
Shell
:: CommandProcessor # transact { . . . } -> object (102.0) -
ブロック中で shell を self として実行します。
ブロック中で shell を self として実行します。
例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact{
system("ls", "-l") | head > STDOUT
# transact の中では、
# sh.system("ls", "-l") | sh.head > STDOUT と同じとなる。
} -
Shell
:: CommandProcessor . def _ builtin _ commands(delegation _ class , commands _ specs) -> () (102.0) -
@todo
...@todo
@param delegation_class 処理を委譲したいクラスかモジュールを指定します。
@param commands_specs コマンドの仕様を文字列の配列で指定します。
[[コマンド名, [引数1, 引数2, ...]], ...]...