Steve Tuckner <SAT / MULTITECH.com> writes:

> How can you define instance variables inside of a class method? Who is self?
> The class object. What is the difference between a classes' instance
> variables and an object's class variables.

None - they just belong to a different object :)

A class is an object like anything else in Ruby, so a Class object can
have instance variables too. But as it's a different object to the
objects instantiated from the class, there's no sharing of the
instance varibales (which is a good thing :)


Dave