4件ヒット
[1-4件を表示]
(0.091秒)
別のキーワード
ライブラリ
- ビルトイン (4)
キーワード
- directory? (1)
- executable? (1)
-
executable
_ real? (1) - open (1)
検索結果
先頭4件
-
File
. directory?(path) -> bool (18604.0) -
FileTest.#directory? と同じです。
...
FileTest.#directory? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
File
. executable?(path) -> bool (18604.0) -
FileTest.#executable? と同じです。
...
FileTest.#executable? と同じです。
@param path パスを表す文字列を指定します。... -
File
. executable _ real?(path) -> bool (18604.0) -
FileTest.#executable_real? と同じです。
...
FileTest.#executable_real? と同じです。
@param path パスを表す文字列を指定します。... -
File
. open(path , mode = "r" , perm = 0666) {|file| . . . } -> object (9904.0) -
path で指定されるファイルをオープンし、File オブジェクトを生成して 返します。
...、File オブジェクトを生成して
返します。
path が整数の場合はファイルディスクリプタとして扱い、それに対応する
File オブジェクトを生成して返します。IO.open と同じです。
ブロックを指定して呼び出した場合は、File オ......mlist[例: File.new による読み込みモードでのファイルオープン][ruby]{
f = File.new("testfile", "r")
f.class # => File
f.close
//}
//emlist[例: File.open による読み込みモードでのファイルオープン][ruby]{
f = File.open("testfile", "r")
f.class # => File
f.close......//}
//emlist[例: File.open による書き込みモードでのファイルオープン][ruby]{
File.open("testfile", "w", 0755) { |f| f.print "test" }
File.read("testfile") # => "test"
//}...