This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# Module.private_class_method (from ruby core) --- mod.private_class_method(symbol, ...) -> mod mod.private_class_method(string, ...) -> mod mod.private_class_method(array) -> mod --- Makes existing class methods private. Often used to hide the default constructor `new`. String arguments are converted to symbols. An Array of Symbols and/or Strings is also accepted. class SimpleSingleton # Not thread safe private_class_method :new def SimpleSingleton.create(*args, &block) @me = new(*args, &block) if ! @me @me end end
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.