>>>>> "D" == David Alan Black <dblack / candle.superlink.net> writes:

D> But creating a new class does create a new instance of class Class.
D> So if class variables can be understood as instance variables of
D> instances of class Class, then in this example:

D>   class A
D>     @@cv = 123
D>   end

D>   class B < A
D>   end

pigeon% cat b.rb
#!/usr/bin/ruby
class A
   @cv = 123
   def A.cv
      @cv
   end
end

class B < A
   @cv = 24
   def B.cv
      @cv
   end
end

p A.cv
p B.cv
pigeon% 

pigeon% b.rb
123
24
pigeon% 


Guy Decoux