On 5/5/05, Logan Capaldo <logancapaldo / gmail.com> 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