From: Lyle Johnson Date: 2001-10-01T23:49:22+09:00 Subject: [ruby-talk:21866] Re: Ruby internal (guide to the source) > The part I'm not sure to understand to well is the relationship between a > class and > its metaclass and why is the metaclass needed at all. Do you have any > document > I could read on this concept? In addition to the information already provided by Matz and Guy in their responses, you might take a look at the "Classes and Objects" chapter in "Programming Ruby" (Chapter 19 maybe?) This chapter doesn't specifically try to dissect the C code that implements Ruby's classes and objects but it does explain how they work together (e.g. how singleton methods are implemented, etc.) and might give you a head-start when looking at the code in object.c and class.c. Good luck, Lyle