Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Resource#each & Enumerable #33

Merged
merged 4 commits into from
Dec 2, 2014
Merged

Add Resource#each & Enumerable #33

merged 4 commits into from
Dec 2, 2014

Conversation

Casao
Copy link
Contributor

@Casao Casao commented Dec 1, 2014

As mentioned in octokit/octokit.rb#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
Copy link
Member

pengwynn commented Dec 2, 2014

Nice. 🍰

pengwynn added a commit that referenced this pull request Dec 2, 2014
Add Resource#each & Enumerable
@pengwynn pengwynn merged commit b3d243f into lostisland:master Dec 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants