ruby-changes:72397
From: BurdetteLamar <ko1@a...>
Date: Sat, 2 Jul 2022 21:49:30 +0900 (JST)
Subject: [ruby-changes:72397] 7e8fd40c06 (master): [ruby/pstore] Enhanced RDoc
https://git.ruby-lang.org/ruby.git/commit/?id=7e8fd40c06 From 7e8fd40c063298da6bc94ef80f4e0feae808d205 Mon Sep 17 00:00:00 2001 From: BurdetteLamar <BurdetteLamar@Y...> Date: Thu, 30 Jun 2022 15:50:43 -0500 Subject: [ruby/pstore] Enhanced RDoc https://github.com/ruby/pstore/commit/7e56730689 --- lib/pstore.rb | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/lib/pstore.rb b/lib/pstore.rb index a8d4bb8607..bbee757212 100644 --- a/lib/pstore.rb +++ b/lib/pstore.rb @@ -44,25 +44,26 @@ require "digest" https://github.com/ruby/ruby/blob/trunk/lib/pstore.rb#L44 # # Example code using store goes here. # end # -# The implementation of +example_store+ -# (which is profoundly unimportant here): +# All we really need to know about +example_store+ +# is that it yields a fresh store with a known population of roots; +# its implementation: # # require 'pstore' # require 'tempfile' # # Yield a pristine store for use in examples. # def example_store -# # Create the store in a temporary file. -# Tempfile.create do |file| -# store = PStore.new(file) -# # Populate the store. -# store.transaction do -# store[:foo] = 0 -# store[:bar] = 1 -# store[:baz] = 2 +# # Create the store in a temporary file. +# Tempfile.create do |file| +# store = PStore.new(file) +# # Populate the store. +# store.transaction do +# store[:foo] = 0 +# store[:bar] = 1 +# store[:baz] = 2 +# end +# yield store # end -# yield store # end -# end # # == The Store # -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/