138件ヒット
[101-138件を表示]
(0.100秒)
別のキーワード
ライブラリ
-
shell
/ filter (138)
検索結果
先頭5件
-
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
print 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 の動作をします。
...
path がファイルなら 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...