5件ヒット
[1-5件を表示]
(0.055秒)
種類
- インスタンスメソッド (3)
- 特異メソッド (1)
- 文書 (1)
キーワード
- delete (1)
-
ruby 1
. 8 . 3 feature (1) - unlink (1)
検索結果
先頭5件
-
Pathname
# exist? -> bool (63604.0) -
FileTest.exist?(self.to_s) と同じです。
FileTest.exist?(self.to_s) と同じです。
@see FileTest.#exist? -
Dir
. exist?(file _ name) -> bool (54970.0) -
file_name で与えられたディレクトリが存在する場合に真を返します。 そうでない場合は、偽を返します。
file_name で与えられたディレクトリが存在する場合に真を返します。
そうでない場合は、偽を返します。
@param file_name 存在を確認したいディレクトリ名。
//emlist[例][ruby]{
Dir.exist?(".") # => true
File.directory?(".") # => true
//}
@see File.directory? -
Pathname
# delete -> Integer (9337.0) -
self が指すディレクトリあるいはファイルを削除します。
self が指すディレクトリあるいはファイルを削除します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//} -
Pathname
# unlink -> Integer (9337.0) -
self が指すディレクトリあるいはファイルを削除します。
self が指すディレクトリあるいはファイルを削除します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//} -
ruby 1
. 8 . 3 feature (73.0) -
ruby 1.8.3 feature *((<ruby 1.8 feature>)) *((<ruby 1.8.2 feature>))
ruby 1.8.3 feature
*((<ruby 1.8 feature>))
*((<ruby 1.8.2 feature>))
ruby 1.8.2 から ruby 1.8.3 までの変更点です。
掲載方針
*バグ修正の影響も含めて動作が変わるものを収録する。
*単にバグを直しただけのものは収録しない。
*ライブラリへの単なる定数の追加は収録しない。
以下は各変更点に付けるべきタグです。
記号について(特に重要なものは大文字(主観))
* カテゴリ
* [ruby]: ruby インタプリタの変更
* [api]: 拡張ライブラリ API
* [lib]: ...