Skip to content

Instantly share code, notes, and snippets.

@austinfromboston
Created January 19, 2010 18:12
Show Gist options
  • Save austinfromboston/281136 to your computer and use it in GitHub Desktop.
Save austinfromboston/281136 to your computer and use it in GitHub Desktop.
irb> ObjectSpace.each_object { |o| puts o if o.respond_to?(:ancestors) and o.ancestors.include?(Enumerable) }
Enumerable::Enumerator
Struct::Tms
Dir
File
IO
Range
Struct
Hash
Array
String
Enumerable
Socket
UNIXServer
UNIXSocket
UDPSocket
TCPServer
TCPSocket
IPSocket
BasicSocket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment