From: Austin Ziegler Date: 2005-05-06T10:46:07+09:00 Subject: Re: [ANN] Transaction::Simple 1.3.0 On 5/5/05, Logan Capaldo wrote: > This is cool. Would things like this work? > > v = SomeObject.new > v.extend(Transaction::Simple) > > begin > v.start_transaction v.bad_method > v.commit_transaction > rescue SaidException > v.abort_transaction > end That, Logan, is one of the very reasons that this package exists. You can also go: begin v.start_transaction if v.bad_method v.commit_transaction else v.abort_transaction rescue SillyException v.rewind_transaction v.recover retry end -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca