るりまサーチ (Ruby 1.9.3)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.314秒)
トップページ > クラス:File::Stat[x] > バージョン:1.9.3[x] > クエリ:world_readable?[x]

別のキーワード

  1. _builtin new
  2. _builtin to_s
  3. _builtin []
  4. _builtin inspect
  5. _builtin each

ライブラリ

検索結果

File::Stat#world_readable? -> Integer | nil (18109.0)

If stat is readable by others, returns an integer representing the file permission bits of stat. Returns nil otherwise. The meaning of the bits is platform dependent; on Unix systems, see stat(2).

If stat is readable by others, returns an integer representing
the file permission bits of stat. Returns nil otherwise. The
meaning of the bits is platform dependent; on Unix systems, see
stat(2).

m = File.stat("/etc/passwd").world_readable? # => 420
sprintf("%o", m) ...