Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed docs a bit.

  • Loading branch information...
commit 122b5f373dfc5b788e9b5e25bd66972dbd2098ec 1 parent 551d71e
@archit authored
Showing with 17 additions and 3 deletions.
  1. +10 −0 History.txt
  2. +7 −3 lib/restarts.rb
View
10 History.txt
@@ -1,3 +1,13 @@
+=== 1.0.2 / 2008-08-21
+
+* 1 minor enhancement
+ * Fixed up the ri/rdoc
+
+=== 1.0.1 / 2008-08-21
+
+* 1 minor enhancement
+ * Added syntax for directly calling the #restart method with a restart id
+
=== 1.0.0 / 2008-08-21
* 1 major enhancement
View
10 lib/restarts.rb
@@ -4,12 +4,16 @@
# Refer to README.txt for more info
module Restarts
- VERSION = '1.0.1'
+ VERSION = '1.0.2'
end
module Kernel
- # FIXME: Find a way to have it part of Restarts module, but mixed-into Kernel
- # Don't even know if thats a better way to do it.
+ # Similar to the standard Kernel#raise command. Allows you to throw exceptions
+ # The benefit is though that using raise_with_restarts adds the infrastructure
+ # so that the rescue code can tell the exception to restart and recover from
+ # a specific point.
+ #
+ # See README.txt for example
def raise_with_restarts(condition)
restart = callcc do |cc|
# Have the continuation object accessible via the #restart method.
Please sign in to comment.
Something went wrong with that request. Please try again.