73件ヒット
[1-73件を表示]
(0.041秒)
別のキーワード
種類
- インスタンスメソッド (40)
- モジュール関数 (22)
- 特異メソッド (11)
ライブラリ
- ビルトイン (33)
- pathname (22)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
- File (11)
- Pathname (22)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6)
モジュール
- FileTest (22)
検索結果
先頭5件
-
FileTest
. # readable?(file) -> bool (39112.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
//}... -
FileTest
. # world _ readable?(path) -> Integer | nil (27106.0) -
path が全てのユーザから読めるならばそのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
...整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列を指定します。
m = FileTest.world_readable?("/etc/passwd")
"%o" % m # => "644"... -
Pathname
# readable? -> bool (18123.0) -
FileTest.readable?(self.to_s) と同じです。
...FileTest.readable?(self.to_s) と同じです。
@see FileTest.#readable?... -
Shell
# readable?(file) -> bool (18122.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable?... -
Shell
:: CommandProcessor # readable?(file) -> bool (18122.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable?... -
Shell
:: Filter # readable?(file) -> bool (18122.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable?... -
File
. readable?(path) -> bool (18116.0) -
FileTest.#readable? と同じです。
...
FileTest.#readable? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
Pathname
# world _ readable? -> bool (6123.0) -
FileTest.world_readable?(self.to_s) と同じです。
...FileTest.world_readable?(self.to_s) と同じです。
@see FileTest.#world_readable?...