This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

allocate

        # Class.allocate

(from ruby core)
---
    class.allocate()   ->   obj

---

Allocates space for a new object of *class*'s class and does not call
initialize on the new instance. The returned object must be an instance
of *class*.

    klass = Class.new do
      def initialize(*args)
        @initialized = true
      end

      def initialized?
        @initialized || false
      end
    end

    klass.allocate.initialized? #=> false



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.