ruby-changes:72398
From: BurdetteLamar <ko1@a...>
Date: Sat, 2 Jul 2022 21:49:30 +0900 (JST)
Subject: [ruby-changes:72398] d7419354ac (master): [ruby/pstore] Enhanced RDoc
https://git.ruby-lang.org/ruby.git/commit/?id=d7419354ac From d7419354acaaad6631ed4b6f82eb90a6a37f6d96 Mon Sep 17 00:00:00 2001 From: BurdetteLamar <BurdetteLamar@Y...> Date: Thu, 30 Jun 2022 15:10:42 -0500 Subject: [ruby/pstore] Enhanced RDoc https://github.com/ruby/pstore/commit/23a7f5468f --- lib/pstore.rb | 7 ++++--- 1 file 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" https://github.com/ruby/ruby/blob/trunk/lib/pstore.rb#L51 # 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" https://github.com/ruby/ruby/blob/trunk/lib/pstore.rb#L62 # end # yield store # end +# end # # == The Store # -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/