U:RDoc::NormalClass[iI" Store:ETI"YAML::Store;TI" PStore;To:RDoc::Markup::Document: @parts[o;;[ o:RDoc::Markup::Paragraph;[I"PYAML::Store provides the same functionality as PStore, except it uses YAML ;TI"(to dump objects instead of Marshal.;To:RDoc::Markup::BlankLineS:RDoc::Markup::Heading: leveli: textI" Example;T@o:RDoc::Markup::Verbatim;[I"require 'yaml/store' ;TI" ;TI"1Person = Struct.new :first_name, :last_name ;TI" ;TI"Jpeople = [Person.new("Bob", "Smith"), Person.new("Mary", "Johnson")] ;TI" ;TI"*store = YAML::Store.new "test.store" ;TI" ;TI"store.transaction do ;TI" store["people"] = people ;TI"2 store["greeting"] = { "hello" => "world" } ;TI" end ;T: @format0o; ;[I"HAfter running the above code, the contents of "test.store" will be:;T@o;;[I" --- ;TI" people: ;TI"- !ruby/struct:Person ;TI" first_name: Bob ;TI" last_name: Smith ;TI"- !ruby/struct:Person ;TI" first_name: Mary ;TI" last_name: Johnson ;TI"greeting: ;TI" hello: world;T;0: @fileI"lib/yaml/store.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[[[[I" class;T[[: public[[I"new;TI"lib/yaml/store.rb;T[:protected[[: private[[I" instance;T[[;[[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[@2@2cRDoc::TopLevel