6件ヒット
[1-6件を表示]
(0.124秒)
種類
- インスタンスメソッド (4)
- 特異メソッド (1)
- クラス (1)
ライブラリ
- ビルトイン (3)
- pathname (1)
-
rubygems
/ package / tar _ reader / entry (1) -
shell
/ command-processor (1)
クラス
- File (1)
-
File
:: Stat (1) -
Gem
:: Package :: TarReader :: Entry (1) - Pathname (1)
-
Shell
:: CommandProcessor (1)
検索結果
先頭5件
-
File
:: Stat # directory? -> bool (72622.0) -
ディレクトリの時に真を返します。
ディレクトリの時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).directory? #=> false
//}
@see FileTest.#directory? -
Shell
:: CommandProcessor # directory?(file) -> bool (72601.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory? -
File
. directory?(path) -> bool (63901.0) -
FileTest.#directory? と同じです。
FileTest.#directory? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。 -
Gem
:: Package :: TarReader :: Entry # directory? -> bool (63604.0) -
自身がディレクトリであれば、真を返します。 そうでない場合は、偽を返します。
自身がディレクトリであれば、真を返します。
そうでない場合は、偽を返します。 -
Pathname
# directory? -> bool (63604.0) -
FileTest.directory?(self.to_s) と同じです。
FileTest.directory?(self.to_s) と同じです。
@see FileTest.#directory? -
File
:: Stat (27019.0) -
ファイルの情報を格納したオブジェクトのクラス。
ファイルの情報を格納したオブジェクトのクラス。
FileTest に同名のモジュール関数がある場合はそれと同じ働きをします。ただ、
ファイル名を引数に取るかわりに Stat 自身について判定する点が違います。
//emlist[][ruby]{
p File::Stat.new($0).directory? #=> false
p FileTest.directory?($0) #=> false
//}
1.8 以降では、属性メソッドがシステムでサポートされていない場合 nil が返ります。
なお、1.7 以前では 0 が返っていました。
dev デバイス番号(フ...