るりまサーチ

最速Rubyリファレンスマニュアル検索!
324件ヒット [201-300件を表示] (0.200秒)
トップページ > クエリ:t[x] > 種類:インスタンスメソッド[x] > クエリ:r[x] > クラス:Shell::CommandProcessor[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

ライブラリ

キーワード

検索結果

<< < 1 2 3 4 > >>

Shell::CommandProcessor#sticky?(file) -> bool (9102.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#sticky?...

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

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

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

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

@param...
...@param file2 文字列でファイルへのパスを指定します。

r
equire 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
r
escue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?,...
..."foo"] # => true
p sh["exists?", "foo"] # => true

@see Kernel.#test, FileTest...

Shell::CommandProcessor#dirname(filename) -> String (6202.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@see File.dirname...

Shell::CommandProcessor#foreach(path = nil, &block) -> () (6202.0)

pathがファイルなら, File#foreach pathがディレクトリなら, Dir#foreach の動作をします。

...pathがファイルなら, File#foreach
pathがディレクトリなら, Dir#foreach
の動作をします。

@param path ファイルもしくはディレクトリのパスを文字列で指定します。

使用例
r
equire 'shell'
Shell.verbose = false
sh = Shell.new
sh.foreach("/tmp"){...
...|f|
puts f
}...

Shell::CommandProcessor#mkdir(*path) -> Array (6202.0)

Dir.mkdirと同じです。 (複数可)

...Dir.mkdirと同じです。 (複数可)

@param path 作成するディレクトリ名を文字列で指定します。

@return 作成するディレクトリの一覧の配列を返します。

使用例
r
equire 'shell'
Shell.verbose = false
sh = Shell.new
begin
p sh.mkdir("foo") #=>...
...["foo"]
r
escue => err
puts err
end...

絞り込み条件を変える

Shell::CommandProcessor#readlink(path) -> String (6202.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param path シンボリックリンクを表す文字列を指定します。

@see File.readlink...

Shell::CommandProcessor#rename(from, to) -> 0 (6202.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param from ファイルの名前を文字列で与えます。

@param to 新しいファイル名を文字列で与えます。

@see File.rename...

Shell::CommandProcessor#rmdir(*path) -> () (6202.0)

Dir.rmdirと同じです。 (複数可)

...Dir.rmdirと同じです。 (複数可)

@param path 削除するディレクトリ名を文字列で指定します。...

Shell::CommandProcessor#finish_all_jobs (6002.0)

@todo

...@todo...

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

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

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

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

@param...
...@param file2 文字列でファイルへのパスを指定します。

r
equire 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
r
escue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?,...
..."foo"] # => true
p sh["exists?", "foo"] # => true

@see Kernel.#test, FileTest...

絞り込み条件を変える

Shell::CommandProcessor#append(to, filter) -> Shell::AppendFile | Shell::AppendIO (3202.0)

@todo

...@todo

@param to 文字列か IO を指定します。

@param filter Shell::Filter のインスタンスを指定します。...

Shell::CommandProcessor#basename(filename, suffix = "") -> String (3202.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き...

Shell::CommandProcessor#chmod(mode, *filename) -> Integer (3202.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param mode chmod(2) と同様に整数で指定します。

@see File.chmod...

Shell::CommandProcessor#chown(owner, group, *filename) -> Integer (3202.0)

File クラスにある同名のクラスメソッドと同じです.

...にある同名のクラスメソッドと同じです.

@param owner chown(2) と同様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。

@param group chown(2) と同様に数値で指定します。nil また...
...は -1 を指定することで、グループを現在のままにすることができます。

@param filename ファイル名を表す文字列を指定します。

@see File.chown...

Shell::CommandProcessor#echo(*strings) -> Shell::Filter (3202.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...Filter オブジェクトを返します.

@param strings シェルコマンド echo に与える引数を文字列で指定します。

動作例
r
equire 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(f...
...ile).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}...

絞り込み条件を変える

Shell::CommandProcessor#glob(pattern) -> Shell::Filter (3202.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...容とする Filter オブジェクトを返します.

@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。

動作例
r
equire '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") >> "all.tee"
}
}
}

@see Dir.[]...

Shell::CommandProcessor#join(*item) -> String (3202.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param item 連結したいディレクトリ名やファイル名を文字列で与えます。

@see File.join...
<< < 1 2 3 4 > >>