51件ヒット
[1-51件を表示]
(0.039秒)
種類
- インスタンスメソッド (40)
- 特異メソッド (11)
ライブラリ
- ビルトイン (22)
- pathname (11)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
- File (11)
-
File
:: Stat (11) - Pathname (11)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6)
検索結果
先頭5件
-
File
. ftype(filename) -> String (18226.0) -
ファイルのタイプを表す文字列を返します。
...ファイルのタイプを表す文字列を返します。
文字列は以下のうちのいずれかです。File.lstat(filename).ftype と同じです。
シンボリックリンクに対して "link" を返します。
* "file"
* "directory"
* "characterSpecial"
* "blockSpecial"
* "fifo......を表す文字列を指定します。
@raise Errno::EXXX 情報の取得に失敗した場合に発生します。
//emlist[例][ruby]{
File.ftype("testfile") # => "file"
File.ftype("/dev/tty") # => "characterSpecial"
File.ftype("/tmp/.X11-unix/X0") # => "socket"
//}... -
Pathname
# ftype -> String (18224.0) -
File.ftype(self.to_s) と同じです。
...File.ftype(self.to_s) と同じです。
@see File.ftype... -
File
:: Stat # ftype -> String (18214.0) -
ファイルのタイプを表す文字列を返します。
...aracterSpecial"
"blockSpecial"
"fifo"
"link"
"socket"
"unknown"
//emlist[例][ruby]{
fs = File::Stat.new($0)
p fs.ftype #=> "file"
p File::Stat.new($:[0]).ftype #=> "directory"
//}
1.8 以降では、属性メソッドがシステムでサポートされていない場合 nil が返... -
Shell
# ftype(filename) -> String (18208.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.ftype... -
Shell
:: CommandProcessor # ftype(filename) -> String (18208.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.ftype... -
Shell
:: Filter # ftype(filename) -> String (18208.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.ftype...