Sha256: 600973020ec34ba5fd8a50e906192e98d392fbf528124f1fb636e33d6ebf6a5b
Contents?: true
Size: 260 Bytes
Versions: 3
Compression:
Stored size: 260 Bytes
Contents
module Betfair module Utils def attempt(enum) exception = nil enum.each do begin return yield rescue Exception => e exception = e next end end raise exception end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
betfair-ng-0.2.1 | lib/betfair/utils.rb |
betfair-ng-0.2.0 | lib/betfair/utils.rb |
betfair-ng-0.1.0 | lib/betfair/utils.rb |