るりまサーチ

最速Rubyリファレンスマニュアル検索!
408件ヒット [101-200件を表示] (0.060秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:p[x] > ライブラリ:shell/command-processor[x]

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. dh p
  5. rsa p

クラス

キーワード

検索結果

<< < 1 2 3 4 ... > >>

Shell::CommandProcessor#truncate(path, length) -> 0 (3103.0)

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

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

@param path パスを表す文字列を指定します。

@param length 変更したいサイズを整数で与えます。

@see File.truncate...

Shell::CommandProcessor#unlink(path) -> self (3103.0)

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

...
p
ath がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。

@param path 削除したいパスを指定します。

@see File.unlink, Dir.unlink...

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

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

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

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

@para...
...ell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
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#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (3033.0)

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

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

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

@para...
...ell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
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#atime(filename) -> Time (3003.0)

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

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

@param filename ファイル名を表す文字列か IO オブジェクトを指定します。

@see File.atime...

絞り込み条件を変える

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

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

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

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

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

Shell::CommandProcessor#blockdev?(file) -> bool (3003.0)

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

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

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#blockdev?...

Shell::CommandProcessor#cat(*files) -> Shell::Filter (3003.0)

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

...クトを返します.

@param files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |...

Shell::CommandProcessor#chardev?(file) -> bool (3003.0)

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

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

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#chardev?...

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

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

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

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

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

@see File.chmod...

絞り込み条件を変える

Shell::CommandProcessor#concat(*jobs) -> Shell::Concat (3003.0)

@todo

@todo

Shell::CommandProcessor#ctime(filename) -> Time (3003.0)

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

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

@param filename ファイル名を表す文字列か IO オブジェクトを指定します。

@see File.ctime...

Shell::CommandProcessor#delete(*filename) -> Integer (3003.0)

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

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

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

@see File.delete...

Shell::CommandProcessor#directory?(file) -> bool (3003.0)

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

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

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#directory?...

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

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

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

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

@see File.dirname...

絞り込み条件を変える

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

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

...ェクトを返します.

@param strings シェルコマンド 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|...

Shell::CommandProcessor#executable?(file) -> bool (3003.0)

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

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

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

@see FileTest.#executable?...

Shell::CommandProcessor#executable_real?(file) -> bool (3003.0)

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

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

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

@see FileTest.#executable_real?...
<< < 1 2 3 4 ... > >>