darren kirby wrote:
> Hello all,

> So you can see I need to explicitly call each attribute before my array gets 
> the value. How can I change this so the array is populated automatically when 
> called?

Add code to to_a to populate the instance variables if they are not et 
assigned, or have the initializer assign the instance variables when an 
object is created.

Calling a method will only do what the method code is set up to do.


-- 
James Britt

"Blanket statements are over-rated"