summaryrefslogtreecommitdiff
path: root/lib/pstore.rb
diff options
context:
space:
mode:
authorBurdetteLamar <BurdetteLamar@Yahoo.com>2022-06-30 14:00:06 -0500
committergit <svn-admin@ruby-lang.org>2022-07-02 21:49:11 +0900
commit6f26a6cdef9f710613cc4f9f6ba3061b01c484ac (patch)
treed10f59256dcdfb034856c864113b41a1250b247c /lib/pstore.rb
parentce5aa6d4af8ea6dd4e670ea822aec57bd32f39ea (diff)
[ruby/pstore] Enhanced RDoc
https://github.com/ruby/pstore/commit/c12560e59a
Diffstat (limited to 'lib/pstore.rb')
-rw-r--r--lib/pstore.rb15
1 files 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"
# == 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"
# 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