查看网站首页
查看网站首页
查看 sitemap.xml
✏️ 正在编辑: %5b%5d%3d-i.yaml
路径:
/opt/alt/ruby18/share/ri/1.8/system/PStore/%5b%5d%3d-i.yaml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Stores an individual Ruby object or a hierarchy of Ruby objects in the data store file under the root <em>name</em>. Assigning to a <em>name</em> already in the data store clobbers the old data. - !ruby/struct:SM::Flow::H level: 2 text: "Example:" - !ruby/struct:SM::Flow::VERB body: " require "pstore"\n\n store = PStore.new("data_file.pstore")\n store.transaction do # begin transaction\n # load some data into the store...\n store[:single_object] = "My data..."\n store[:obj_heirarchy] = { "Kev Jackson" => ["rational.rb", "pstore.rb"],\n "James Gray" => ["erb.rb", "pstore.rb"] }\n end # commit changes to data store file\n" - !ruby/struct:SM::Flow::P body: "<b>WARNING</b>: This method is only valid in a PStore#transaction and it cannot be read-only. It will raise PStore::Error if called at any other time." full_name: PStore#[]= is_singleton: false name: "[]=" params: (name, value) visibility: public
💾 保存文件
← 返回文件管理器