Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enumerable vs Enumerator

Enumerable is a module, and Enumerator is a class. So that should tell you a lot out the the box. Enumerable is a set of behaviors and functionality you'd want to add to a class. The Enumerator class is something you get objects from itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment