Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created November 10, 2012 17:30
Show Gist options
  • Select an option

  • Save practicingruby/4051848 to your computer and use it in GitHub Desktop.

Select an option

Save practicingruby/4051848 to your computer and use it in GitHub Desktop.
$ ruby -e "p ObjectSpace.each_object(Class).select { |e| e.ancestors.include?(Enumerable) }"
[Enumerator::Generator, Enumerator, Struct::Tms, Dir, File, ARGF.class, IO, Range, Struct, Hash, Array]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment