This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# Module < Object (from ruby core) --- A Module is a collection of methods and constants. The methods in a module may be instance methods or module methods. Instance methods appear as methods in a class when the module is included, module methods do not. Conversely, module methods may be called without creating an encapsulating object, while instance methods may not. (See Module#module_function.) In the descriptions that follow, the parameter *sym* refers to a symbol, which is either a quoted string or a Symbol (such as `:name`). module Mod include Math CONST = 1 def meth # ... end end Mod.class #=> Module Mod.constants #=> [:CONST, :PI, :E] Mod.instance_methods #=> [:meth] --- # Class methods: constants nesting new used_modules # Instance methods: < <= <=> == === > >= alias_method ancestors append_features attr attr_accessor attr_reader attr_writer autoload autoload? class_eval class_exec class_variable_defined? class_variable_get class_variable_set class_variables const_defined? const_get const_missing const_set const_source_location constants define_method deprecate_constant extend_object extended freeze include include? included included_modules inspect instance_method instance_methods method_added method_defined? method_removed method_undefined module_eval module_exec module_function name prepend prepend_features prepended private private_class_method private_constant private_instance_methods private_method_defined? protected protected_instance_methods protected_method_defined? public public_class_method public_constant public_instance_method public_instance_methods public_method_defined? refine remove_class_variable remove_const remove_method ruby2_keywords singleton_class? to_s undef_method using (from gem builder-3.2.4) --- Also, modules included into Object need to be scanned and have their instance methods removed from blank slate. In theory, modules included into Kernel would have to be removed as well, but a "feature" of Ruby prevents late includes into modules from being exposed in the first place. --- # Instance methods: append_features blankslate_original_append_features (from gem debug-1.7.1) --- # Instance methods: method_added --- Also found in: gem rake-13.0.6
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.