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

undef_method

        # Module.undef_method

(from ruby core)
---
    undef_method(symbol)    -> self
    undef_method(string)    -> self

---

Prevents the current class from responding to calls to the named method.
Contrast this with `remove_method`, which deletes the method from the
particular class; Ruby will still search superclasses and mixed-in
modules for a possible receiver. String arguments are converted to
symbols.

    class Parent
      def hello
        puts "In parent"
      end
    end
    class Child < Parent
      def hello
        puts "In child"
      end
    end

    c = Child.new
    c.hello

    class Child
      remove_method :hello  # remove from child, still in parent
    end
    c.hello

    class Child
      undef_method :hello   # prevent any calls to 'hello'
    end
    c.hello

*produces:*

    In child
    In parent
    prog.rb:23: undefined method `hello' for #<Child:0x401b3bb4> (NoMethodError)



      

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.