diff options
author | BurdetteLamar <BurdetteLamar@Yahoo.com> | 2022-06-30 15:10:42 -0500 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-07-02 21:49:12 +0900 |
commit | d7419354acaaad6631ed4b6f82eb90a6a37f6d96 (patch) | |
tree | 788db09c1406c220c08601bac21ee16bf29d3c90 /lib/pstore.rb | |
parent | 6f26a6cdef9f710613cc4f9f6ba3061b01c484ac (diff) |
[ruby/pstore] Enhanced RDoc
https://github.com/ruby/pstore/commit/23a7f5468f
Diffstat (limited to 'lib/pstore.rb')
-rw-r--r-- | lib/pstore.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/pstore.rb b/lib/pstore.rb index 505188e8d4..a8d4bb8607 100644 --- a/lib/pstore.rb +++ b/lib/pstore.rb @@ -51,9 +51,9 @@ require "digest" # require 'tempfile' # # Yield a pristine store for use in examples. # def example_store -# # Create the store in a temporary file. -# path = Tempfile.create -# store = PStore.new(path) +# # Create the store in a temporary file. +# Tempfile.create do |file| +# store = PStore.new(file) # # Populate the store. # store.transaction do # store[:foo] = 0 @@ -62,6 +62,7 @@ require "digest" # end # yield store # end +# end # # == The Store # |