るりまサーチ

最速Rubyリファレンスマニュアル検索!
126件ヒット [1-100件を表示] (0.147秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:readable?[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. bigdecimal to_r
  5. fileutils cp_r

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 > >>

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

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

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

//emlist[][ruby]{
p File::Stat.new($0).readable? #=> true
//}...

Net::FTP::MLSxEntry#readable? -> bool (24301.0)

内容が読み出せるなら true を返します。

...内容が読み出せるなら true を返します。...

Pathname#readable? -> bool (24301.0)

FileTest.readable?(self.to_s) と同じです。

...FileTest.readable?(self.to_s) と同じです。


@see FileTest.#readable?...

File.readable?(path) -> bool (24300.0)

FileTest.#readable? と同じです。

...FileTest.#readable? と同じです。

@param path パスを表す文字列か IO オブジェクトを指定します。...

FileTest.#readable?(file) -> bool (24300.0)

ファイルがカレントプロセスにより読み込み可能な時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。

...は false を返します。

@param file ファイル名を表す文字列を指定します。

//emlist[例][ruby]{
IO.write("testfile", "")
File.chmod(0644, "testfile")
FileTest.readable?("testfile") # => true
File.chmod(0200, "testfile")
FileTest.readable?("testfile") # => false
//}...

絞り込み条件を変える

Shell#readable?(file) -> bool (24300.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#readable?...

Shell::CommandProcessor#readable?(file) -> bool (24300.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#readable?...

Shell::Filter#readable?(file) -> bool (24300.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#readable?...

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

全てのユーザから読めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。

...ミッションを表す
整数を返します。そうでない場合は nil を返します。

整数の意味はプラットフォームに依存します。

//emlist[][ruby]{
m = File.stat("/etc/passwd").world_readable? # => 420
sprintf("%o", m) # => "644"
//}...

Pathname#world_readable? -> bool (12301.0)

FileTest.world_readable?(self.to_s) と同じです。

...FileTest.world_readable?(self.to_s) と同じです。


@see FileTest.#world_readable?...

絞り込み条件を変える

File.world_readable?(path) -> Integer | nil (12300.0)

path が全てのユーザから読めるならばそのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。

...場合は nil を返します。

整数の意味はプラットフォームに依存します。

@param path パスを表す文字列か IO オブジェクトを指定します。

//emlist[例][ruby]{
m = File.world_readable?("/etc/passwd")
"%o" % m # => "644"
//}...
<< 1 2 > >>