Skip to content

Commit 23a7f54

Browse files
committed
Enhanced RDoc
1 parent c12560e commit 23a7f54

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/pstore.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
# require 'tempfile'
5252
# # Yield a pristine store for use in examples.
5353
# def example_store
54-
# # Create the store in a temporary file.
55-
# path = Tempfile.create
56-
# store = PStore.new(path)
54+
# # Create the store in a temporary file.
55+
# Tempfile.create do |file|
56+
# store = PStore.new(file)
5757
# # Populate the store.
5858
# store.transaction do
5959
# store[:foo] = 0
@@ -62,6 +62,7 @@
6262
# end
6363
# yield store
6464
# end
65+
# end
6566
#
6667
# == The Store
6768
#

0 commit comments

Comments
 (0)