U:RDoc::AnyMethod[iI"[]=:EFI"PStore#[]=;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"QStores an individual Ruby object or a hierarchy of Ruby objects in the data ;TI"Rstore file under the root _name_. Assigning to a _name_ already in the data ;TI"!store clobbers the old data.;To:RDoc::Markup::BlankLineS:RDoc::Markup::Heading: leveli: textI" Example:;T@o:RDoc::Markup::Verbatim; [I"require "pstore" ;TI" ;TI",store = PStore.new("data_file.pstore") ;TI"/store.transaction do # begin transaction ;TI"* # load some data into the store... ;TI", store[:single_object] = "My data..." ;TI"P store[:obj_hierarchy] = { "Kev Jackson" => ["rational.rb", "pstore.rb"], ;TI"L "James Gray" => ["erb.rb", "pstore.rb"] } ;TI"?end # commit changes to data store file ;T: @format0o; ; [I"Q*WARNING*: This method is only valid in a PStore#transaction and it cannot ;TI"Lbe read-only. It will raise PStore::Error if called at any other time.;T: @fileI"lib/pstore.rb;T:0@omit_headings_from_table_of_contents_below000[I"(name, value);T@"FI" PStore;TcRDoc::NormalClass00