51件ヒット
[1-51件を表示]
(0.098秒)
種類
- インスタンスメソッド (29)
- 特異メソッド (11)
- モジュール関数 (11)
ライブラリ
- ビルトイン (33)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
- File (11)
-
File
:: Stat (11) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6)
モジュール
- FileTest (11)
検索結果
先頭5件
-
FileTest
. # blockdev?(file) -> bool (21200.0) -
ファイルがブロックスペシャルファイルである時に真を返します。 そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...m file ファイル名を表す文字列か IO オブジェクトを指定します。
@raise IOError 指定された IO オブジェクト file が既に close されていた場合に発生します。
例:
Dir.glob("/dev/*") { |file|
puts file if FileTest.blockdev?(file)
}
# /dev/disk......0
# /dev/disk0s3
# ...... -
Shell
:: Filter # blockdev?(file) -> bool (21200.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#blockdev?... -
File
:: Stat # blockdev? -> bool (21107.0) -
ブロックスペシャルファイルの時に真を返します。
...ブロックスペシャルファイルの時に真を返します。
//emlist[][ruby]{
Dir.glob("/dev/*") {|bd|
if File::Stat.new(bd).blockdev?
puts bd
end
}
#例
#...
#=> /dev/hda1
#=> /dev/hda3
#...
//}... -
File
. blockdev?(path) -> bool (21100.0) -
FileTest.#blockdev? と同じです。
...FileTest.#blockdev? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。
@see FileTest.#blockdev?... -
Shell
# blockdev?(file) -> bool (18200.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#blockdev?... -
Shell
:: CommandProcessor # blockdev?(file) -> bool (18200.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#blockdev?...