Permalink
Browse files

Clarified example.

  • Loading branch information...
1 parent 2a5e520 commit a48a0fe9fe58208e435637f6c2403a4166edf51a @carlo committed Jan 10, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.markdown
View
@@ -16,8 +16,10 @@ will be raised.
Open an URL, retry up to two times when an `OpenURI::HTTPError` occurs.
+ require "open-uri"
+
retryable( :tries => 3, :on => OpenURI::HTTPError ) do
- xml = open( xml_url ).read
+ xml = open( "http://example.com/test.xml" ).read
end
Do _something_, retry up to four times for either `ArgumentError` or

0 comments on commit a48a0fe

Please sign in to comment.