るりまサーチ

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

別のキーワード

  1. tempfile open
  2. tempfile create
  3. tempfile path
  4. tempfile length
  5. tempfile new

ライブラリ

クラス

キーワード

検索結果

<< < 1 2 >>

IO#fdatasync -> 0 (25.0)

IO のすべてのバッファされているデータを直ちにディスクに書き込みます。

...@raise NotImplementedError fdatasync(2) も fsync(2) も
サポートされていない OS で発生します。

//emlist[例][ruby]{
require "tempfile"

Tempfile
.open("testtmpfile") do |f|
f.print "test"
File.read(f.path) # => ""
f.fdatasync
File.read(f.path) # => "test"
end
//}...

IO#flush -> self (25.0)

IO ポートの内部バッファをフラッシュします。

...ープンされていなければ発生します。

@raise Errno::EXXX fflush(3) が失敗した場合に発生します。

//emlist[例][ruby]{
require "tempfile"

Tempfile
.open("testtmpfile") do |f|
f.print "test"
File.read(f.path) # => ""
f.flush
File.read(f.path) # => "test"
end
//}...
<< < 1 2 >>