ruby-changes:72400
From: BurdetteLamar <ko1@a...>
Date: Sat, 2 Jul 2022 21:49:31 +0900 (JST)
Subject: [ruby-changes:72400] 6f26a6cdef (master): [ruby/pstore] Enhanced RDoc
https://git.ruby-lang.org/ruby.git/commit/?id=6f26a6cdef From 6f26a6cdef9f710613cc4f9f6ba3061b01c484ac Mon Sep 17 00:00:00 2001 From: BurdetteLamar <BurdetteLamar@Y...> Date: Thu, 30 Jun 2022 14:00:06 -0500 Subject: [ruby/pstore] Enhanced RDoc https://github.com/ruby/pstore/commit/c12560e59a --- lib/pstore.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/pstore.rb b/lib/pstore.rb index 3871358d3a..505188e8d4 100644 --- a/lib/pstore.rb +++ b/lib/pstore.rb @@ -38,7 +38,14 @@ require "digest" https://github.com/ruby/ruby/blob/trunk/lib/pstore.rb#L38 # == About the Examples # # Examples on this page need a store that has known properties. -# Therefore examples may assume the existence of this helper method: +# They can get a new (and populated) store by calling thus: +# +# example_store do |store| +# # Example code using store goes here. +# end +# +# The implementation of +example_store+ +# (which is profoundly unimportant here): # # require 'pstore' # require 'tempfile' @@ -56,12 +63,6 @@ require "digest" https://github.com/ruby/ruby/blob/trunk/lib/pstore.rb#L63 # yield store # end # -# This means that example code can look like this: -# -# example_store do |store| -# # Example code using store goes here. -# end -# # == The Store # # The contents of the store are maintained in a file whose path is specified -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/