On 4/11/06, David Brady <ruby_talk / shinybit.com> wrote:
> # this version
> if !correct
>   handle_error
>   do_some_other_thing
> end
>
> # or this version
> unless correct
>   handle_error
>   do_some_other_thing
> end

Another version that works, but is a little confusing to read for
anything larger than a handful of lines:

begin
  handle_error
  do_some_other_thing
end unless correct

This is essentially just creating an anonymous scope (the begin/end)
and appending the postcondition to that.