End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
PStore#save_data_with_fast_strategy
save_data_with_fast_strategy(data, file)
lib/pstore.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/pstore.rb, line 710
def save_data_with_fast_strategy(data, file)
file.rewind
file.write(data)
file.truncate(data.bytesize)
end
No documentation available
See also
#save_data_with_atomic_file_rename_strategy
#transaction
#save_data
also in
3.4 · 3.3 · 3.1 · 3.0