Skip to content

Instantly share code, notes, and snippets.

@matthewd
Created May 30, 2010 04:22
Show Gist options
  • Select an option

  • Save matthewd/418777 to your computer and use it in GitHub Desktop.

Select an option

Save matthewd/418777 to your computer and use it in GitHub Desktop.
irb(main):002:0> puts ObjectSpace.each_object(Class).to_a.map {|c| begin; c.allocate; nil; rescue => ex; ex.to_s; end }.compact.sort
allocator undefined for Bignum
allocator undefined for Binding
allocator undefined for Continuation
allocator undefined for Data
allocator undefined for FalseClass
allocator undefined for Fixnum
allocator undefined for Float
allocator undefined for Integer
allocator undefined for Method
allocator undefined for NameError::message
allocator undefined for NilClass
allocator undefined for Proc
allocator undefined for Struct
allocator undefined for Symbol
allocator undefined for Thread
allocator undefined for TrueClass
allocator undefined for UnboundMethod
can't instantiate uninitialized class
=> nil
irb(main):003:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment