From: Daniel Berger Date: 2006-02-03T06:01:30+09:00 Subject: Re: Question about PStore API ara.t.howard@noaa.gov wrote: > On Fri, 3 Feb 2006, Daniel Berger wrote: > >> Hi all, >> >> This is one of those, "Why are things this way" kind of questions. >> >> Why doesn't PStore#transaction yield itself? That way I could write: >> >> store.transaction{ |s| >> s['names'] = %w/foo bar baz/ >> s['tree'] = T.new >> } > > > hmmm. > > harp:~ > ruby -r pstore -e ' PStore::new("ps").transaction{|ps| p > ps.class} ' > PStore > > harp:~ > ruby -v > ruby 1.8.4 (2006-01-12) [i686-linux] > > > jib:~ > ruby -r pstore -e ' PStore::new("ps").transaction{|ps| p > ps.class} ' > PStore > > jib:~ > ruby -v > ruby 1.8.1 (2003-12-25) [i686-linux] > > seems to for me? is that what you meant. Gah! I could have sworn that didn't work. Disregard. Dan