A companion project for a blog post about retry in Ruby. This is a plain Ruby project, not Rails.
bundle install
Run an irb console with the application code loaded:
make console
Try it:
FileReader.new("example.txt").read_with_retry
# successful
FileReader.new("no-such-file.txt").read_with_retry
# multiple attempts, then fails
- Tests!
- Deal with method length in Retryable module.
- Use Ruby Logger instead of puts.