Ilias Lazaridis wrote:
> [EVALUATION] - E03 - jamLang Evaluation Case Applied to Ruby
> http://groups-beta.google.com/group/comp.lang.ruby/msg/412943e7c6ed6968
> 
> -
> 
> In the above thread, I had some problems with the Ruby Object Model.
> 
> I currently try to create an UML diagramm, to add this to the evaluation 
> result:
> 
> http://lazaridis.com/case/lang/ruby.html
> 
> -
> 
> The existing documentation seems at least missleading, if not wrong:

the documentation given via "ri Class" is definitely wrong.

I am wondering with which material the ruby development team works.

> cmd:> ri Class
> 
> 
> "Classes, modules, and objects are interrelated. In the diagram that
> follows, the arrows represent inheritance, and the parentheses
> meta-classes. All metaclasses are instances of the class `Class'."
> 
>                           +------------------+
>                           |                  |
>             Object---->(Object)              |
>              ^  ^        ^  ^                |
>              |  |        |  |                |
>              |  |  +-----+  +---------+      |
>              |  |  |                  |      |
>              |  +-----------+         |      |
>              |     |        |         |      |
>       +------+     |     Module--->(Module)  |
>       |            |        ^         ^      |
>  OtherClass-->(OtherClass)  |         |      |
>                             |         |      |
>                           Class---->(Class)  |
>                             ^                |
>                             |                |
>                             +----------------+
> 
> -
> 
> this can be drawn like this:
> 
>          otherClass--->(OtherClass)
>                 |         |
>                 |         |
>                 v         v
>              Object--->(Object)
>                 ^        ^^
>                 |        ||
>                 |       / |
>                 |      /  |
>                 |     /   |
>                 |    /    |
>              Module--->(Module)
>                 ^  /      ^
>                 | /       |
>                 |/        |
>               Class---->(Class)
> 
> -
> 
> i've played within IRB, but:
> 
> I cannot access any of the metaclasses
> 
> the same in the documentation: no metaclasses
> 
> -
> 
> Any suggestions / clarifications?
> 
> .
> 


-- 
http://lazaridis.com