D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
PStore
/
Filename :
new-c.ri
back
Copy
U:RDoc::AnyMethod[iI"new:ETI"PStore::new;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I""Returns a new \PStore object.;To:RDoc::Markup::BlankLine o; ; [I"PArgument +file+ is the path to the file in which objects are to be stored; ;TI"Fif the file exists, it should be one that was written by \PStore.;T@o:RDoc::Markup::Verbatim; [I"path = 't.store' ;TI"store = PStore.new(path) ;T:@format0o; ; [ I"A \PStore object is ;TI"H{reentrant}[https://en.wikipedia.org/wiki/Reentrancy_(computing)]. ;TI"3If argument +thread_safe+ is given as +true+, ;TI"Qthe object is also thread-safe (at the cost of a small performance penalty):;T@o;; [I"#store = PStore.new(path, true);T; 0: @fileI"lib/pstore.rb;T:0@omit_headings_from_table_of_contents_below000[ I" (file, thread_safe = false);T@ FI"PStore;TcRDoc::NormalClass00