るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.009秒)

別のキーワード

  1. _builtin readable?
  2. _builtin readable_real?
  3. _builtin world_readable?
  4. irb/input-method readable_atfer_eof?
  5. shell readable?

ライブラリ

検索結果

File::Stat#readable? -> bool (18110.0)

読み込み可能な時に真を返します。

...読み込み可能な時に真を返します。

p File::Stat.new($0).readable? #=> true...

File::Stat#world_readable? -> Integer | nil (6110.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) ...