4件ヒット
[1-4件を表示]
(0.101秒)
種類
- インスタンスメソッド (3)
- 特異メソッド (1)
検索結果
先頭4件
-
File
. exist?(path) -> bool (63901.0) -
FileTest.#exist? と同じです。
FileTest.#exist? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。 -
Pathname
# exist? -> bool (63604.0) -
FileTest.exist?(self.to_s) と同じです。
FileTest.exist?(self.to_s) と同じです。
@see FileTest.#exist? -
Pathname
# delete -> Integer (27337.0) -
self が指すディレクトリあるいはファイルを削除します。
self が指すディレクトリあるいはファイルを削除します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//} -
Pathname
# unlink -> Integer (27337.0) -
self が指すディレクトリあるいはファイルを削除します。
self が指すディレクトリあるいはファイルを削除します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//}