* object.c: updated the diagram of metaclass hierarchy in rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
da2c21614a
commit
8bacaf1f5c
38
object.c
38
object.c
@ -2427,27 +2427,25 @@ boot_defmetametaclass(VALUE klass, VALUE metametaclass)
|
|||||||
* that follows, the vertical arrows represent inheritance, and the
|
* that follows, the vertical arrows represent inheritance, and the
|
||||||
* parentheses meta-classes. All metaclasses are instances
|
* parentheses meta-classes. All metaclasses are instances
|
||||||
* of the class `Class'.
|
* of the class `Class'.
|
||||||
|
* +---------+ +-...
|
||||||
|
* | | |
|
||||||
|
* BasicObject-----|-->(BasicObject)-------|-...
|
||||||
|
* ^ | ^ |
|
||||||
|
* | | | |
|
||||||
|
* Object---------|----->(Object)---------|-...
|
||||||
|
* ^ | ^ |
|
||||||
|
* | | | |
|
||||||
|
* +-------+ | +--------+ |
|
||||||
|
* | | | | | |
|
||||||
|
* | Module-|---------|--->(Module)-|-...
|
||||||
|
* | ^ | | ^ |
|
||||||
|
* | | | | | |
|
||||||
|
* | Class-|---------|---->(Class)-|-...
|
||||||
|
* | ^ | | ^ |
|
||||||
|
* | +---+ | +----+
|
||||||
|
* | |
|
||||||
|
* obj--->OtherClass---------->(OtherClass)-----------...
|
||||||
*
|
*
|
||||||
* +-----------------+
|
|
||||||
* | |
|
|
||||||
* BasicObject-->(BasicObject) |
|
|
||||||
* ^ ^ |
|
|
||||||
* | | |
|
|
||||||
* Object---->(Object) |
|
|
||||||
* ^ ^ ^ ^ |
|
|
||||||
* | | | | |
|
|
||||||
* | | +-----+ +---------+ |
|
|
||||||
* | | | | |
|
|
||||||
* | +-----------+ | |
|
|
||||||
* | | | | |
|
|
||||||
* +------+ | Module--->(Module) |
|
|
||||||
* | | ^ ^ |
|
|
||||||
* OtherClass-->(OtherClass) | | |
|
|
||||||
* | | |
|
|
||||||
* Class---->(Class) |
|
|
||||||
* ^ |
|
|
||||||
* | |
|
|
||||||
* +----------------+
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user