2件ヒット
[1-2件を表示]
(0.110秒)
クラス
-
File
:: Stat (1) - Pathname (1)
検索結果
-
File
:: Stat # socket? -> bool (63325.0) -
ソケットの時に真を返します。
ソケットの時に真を返します。
//emlist[][ruby]{
Dir.glob("/tmp/*"){|file|
if File::Stat.new(file).socket?
printf "%s\n", file
end
}
#例
#=> /tmp/uimhelper-hogehoge
#...
//} -
Pathname
# socket? -> bool (63307.0) -
FileTest.socket?(self.to_s) と同じです。
FileTest.socket?(self.to_s) と同じです。
@see FileTest.#socket?