lostisland / sawyer

Secret User Agent of HTTP
MIT License
249 stars 75 forks source link

Add Resource#each & Enumerable #33

Closed Casao closed 9 years ago

Casao commented 9 years ago

As mentioned in https://github.com/octokit/octokit.rb/issues/506, Resources are simply wrapped hashes, however they lose out on Enumerable. I've written a quick Resource#each method which wraps each and mixes in Enumerable again, readding this functionality.

pengwynn commented 9 years ago

Nice. :cake: