Module: Betfair::Utils
- Included in:
- Client
- Defined in:
- lib/betfair/utils.rb
Instance Method Summary collapse
Instance Method Details
#attempt(enum) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/betfair/utils.rb', line 3 def attempt(enum) exception = nil enum.each do begin return yield rescue Exception => e exception = e next end end raise exception end |