lostisland / sawyer

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

Add Resource#each & Enumerable #33

Closed Casao closed 10 years ago

Casao commented 10 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 10 years ago

Nice. :cake: