Hi there,

I'm writing a class to encapsulate a 'job'. The job will have variables
such as name, id, resources, dependencies etc and some of these will be
common across all instances.  I'd like to be able to set these common
variables once and not have to repeat it for every instance.  What's the
best way of accomplishing this?

So far I've seen a lot of articles that steer you towards using class
instance variables instead of class variables but I can't find examples
of how to use these from within an instance.  Is that possible?

Thanks.

-- 
Posted via http://www.ruby-forum.com/.