130件ヒット
[1-100件を表示]
(0.146秒)
種類
- インスタンスメソッド (70)
- モジュール関数 (24)
- 特異メソッド (24)
- 文書 (12)
ライブラリ
- ビルトイン (72)
-
net
/ ftp (10) - pathname (24)
-
shell
/ filter (12)
クラス
- File (24)
-
File
:: Stat (24) -
Net
:: FTP :: MLSxEntry (10) - Pathname (24)
-
Shell
:: Filter (12)
モジュール
- FileTest (24)
キーワード
-
ruby 1
. 9 feature (12) -
world
_ readable? (54)
検索結果
先頭5件
-
File
:: Stat # readable? -> bool (21107.0) -
読み込み可能な時に真を返します。
...読み込み可能な時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).readable? #=> true
//}... -
Net
:: FTP :: MLSxEntry # readable? -> bool (21101.0) -
内容が読み出せるなら true を返します。
...内容が読み出せるなら true を返します。... -
Pathname
# readable? -> bool (21101.0) -
FileTest.readable?(self.to_s) と同じです。
...FileTest.readable?(self.to_s) と同じです。
@see FileTest.#readable?... -
FileTest
. # readable?(file) -> bool (21100.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
:: Filter # readable?(file) -> bool (21100.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable?... -
File
. readable?(path) -> bool (18200.0) -
FileTest.#readable? と同じです。
...FileTest.#readable? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
File
:: Stat # world _ readable? -> Integer | nil (9207.0) -
全てのユーザから読めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
...ミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
//emlist[][ruby]{
m = File.stat("/etc/passwd").world_readable? # => 420
sprintf("%o", m) # => "644"
//}... -
FileTest
. # world _ readable?(path) -> Integer | nil (9200.0) -
path が全てのユーザから読めるならばそのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
...path が全てのユーザから読めるならばそのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列を指定します。......m = FileTest.world_readable?("/etc/passwd")
"%o" % m # => "644"... -
Pathname
# world _ readable? -> bool (9101.0) -
FileTest.world_readable?(self.to_s) と同じです。
...FileTest.world_readable?(self.to_s) と同じです。
@see FileTest.#world_readable?...