From: David Suarez de Lis Date: 2000-01-12T04:19:36-05:00 Subject: [ruby-talk:01125] Class variables... Hi all, I am brand new to Ruby's world, but I find it pretty interesting... :) I have a doubt, though, I haven't been able to solve through testing or documentation... Say I have a class person and a variable @population. class Person @population = 0 def new(the_name = nil) @name = the_name @Person::population += 1 end end Ie. I want to be able to access that class variable from objects... Also, I assume END {} allows us to put conditions for GC? Like END { @Person::population -= 1 } thanks for your help, d@ ------------------------------------------------------------- Mensaje enviado gracias al correo gratuito de Demasiado Corp. [http://correo.demasiado.com] -------------------------------------------------------------