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

WeakRef

        # WeakRef < Delegator

(from ruby core)
---
Weak Reference class that allows a referenced object to be
garbage-collected.

A WeakRef may be used exactly like the object it references.

Usage:

    foo = Object.new            # create a new object instance
    p foo.to_s                  # original's class
    foo = WeakRef.new(foo)      # reassign foo with WeakRef instance
    p foo.to_s                  # should be same class
    GC.start                    # start the garbage collector
    p foo.to_s                  # should raise exception (recycled)
---
# Constants:

VERSION
:   [not documented]


# Class methods:

    new

# Instance methods:

    weakref_alive?


      

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.