Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion - E03b - The Ruby Object Model
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ilias Lazaridis  
View profile  
 More options Apr 5 2005, 8:33 am
Newsgroups: comp.lang.ruby
From: Ilias Lazaridis <il...@lazaridis.com>
Date: Tue, 05 Apr 2005 15:33:57 +0300
Local: Tues, Apr 5 2005 8:33 am
Subject: [EVALUATION] - E03b - The Ruby Object Model
[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:

-

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.