るりまサーチ

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

別のキーワード

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

ライブラリ

キーワード

検索結果

<< < 1 2 >>

Shell::Filter#readlink(path) -> String (102.0)

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

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

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

@see File.readlink...

Shell::Filter#rmdir(*path) -> () (102.0)

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

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

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

Shell::Filter#system(command, *opts) -> Shell::SystemCommand (102.0)

command を実行する.

...command を実行する.

@param command 実行するコマンドのパスを文字列で指定します。

@param opts command のオプションを文字列で指定します。複数可。

使用例:

require 'shell'
Shell.verbose = false
sh = Shell.new

p
rint sh.system("ls", "-l")
S...

Shell::Filter#truncate(path, length) -> 0 (102.0)

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

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

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

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

@see File.truncate...

Shell::Filter#unlink(path) -> self (102.0)

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

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

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

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

絞り込み条件を変える

Shell::Filter#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (32.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::Filter#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (32.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...
<< < 1 2 >>