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

constants

        # Module.constants

(from ruby core)
---
    Module.constants   -> array
    Module.constants(inherited)   -> array

---

In the first form, returns an array of the names of all constants
accessible from the point of call. This list includes the names of all
modules and classes defined in the global scope.

    Module.constants.first(4)
       # => [:ARGF, :ARGV, :ArgumentError, :Array]

    Module.constants.include?(:SEEK_SET)   # => false

    class IO
      Module.constants.include?(:SEEK_SET) # => true
    end

The second form calls the instance method `constants`.


(from ruby core)
---
    mod.constants(inherit=true)    -> array

---

Returns an array of the names of the constants accessible in *mod*. This
includes the names of constants in any included modules (example at
start of section), unless the *inherit* parameter is set to `false`.

The implementation makes no guarantees about the order in which the
constants are yielded.

    IO.constants.include?(:SYNC)        #=> true
    IO.constants(false).include?(:SYNC) #=> false

Also see Module#const_defined?.



      

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.