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

const_set

        # Module.const_set

(from ruby core)
---
    mod.const_set(sym, obj)    -> obj
    mod.const_set(str, obj)    -> obj

---

Sets the named constant to the given object, returning that object.
Creates a new constant if no constant with the given name previously
existed.

    Math.const_set("HIGH_SCHOOL_PI", 22.0/7.0)   #=> 3.14285714285714
    Math::HIGH_SCHOOL_PI - Math::PI              #=> 0.00126448926734968

If `sym` or `str` is not a valid constant name a `NameError` will be
raised with a warning "wrong constant name".

    Object.const_set('foobar', 42) #=> NameError: wrong constant name foobar



      

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.