Skip to content

Instantly share code, notes, and snippets.

@aruprakshit
Created July 7, 2014 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aruprakshit/7b67d22fc126c8979166 to your computer and use it in GitHub Desktop.
Save aruprakshit/7b67d22fc126c8979166 to your computer and use it in GitHub Desktop.
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