44件ヒット
[1-44件を表示]
(0.100秒)
別のキーワード
種類
- インスタンスメソッド (22)
- モジュール関数 (11)
- 特異メソッド (11)
クラス
- File (11)
-
File
:: Stat (11) - Pathname (11)
モジュール
- FileTest (11)
検索結果
先頭4件
-
File
:: Stat # world _ readable? -> Integer | nil (27307.0) -
全てのユーザから読めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
...ミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
//emlist[][ruby]{
m = File.stat("/etc/passwd").world_readable? # => 420
sprintf("%o", m) # => "644"
//}... -
File
. world _ readable?(path) -> Integer | nil (27300.0) -
path が全てのユーザから読めるならばそのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
...場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列か IO オブジェクトを指定します。
//emlist[例][ruby]{
m = File.world_readable?("/etc/passwd")
"%o" % m # => "644"
//}... -
FileTest
. # world _ readable?(path) -> Integer | nil (27300.0) -
path が全てのユーザから読めるならばそのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
...整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列を指定します。
m = FileTest.world_readable?("/etc/passwd")
"%o" % m # => "644"... -
Pathname
# world _ readable? -> bool (24301.0) -
FileTest.world_readable?(self.to_s) と同じです。
...FileTest.world_readable?(self.to_s) と同じです。
@see FileTest.#world_readable?...