On 08/30/2010 04:56 PM, Jonathan Allen wrote:
> Robert Klemme wrote:
>> If you do not always pass an Array you can do
>>
>> @items = []
>>    @items<<  items
>
> Thanks Robert. I didn't think about pushing the items into the array
> from within the actual code for the class Item itself.
>
> This worked just the way I was hoping. Thanks again!

Note though that the code above only appends a single Array to the Array 
- it does not "push items into the array"!  For that you need #concat as 
I have shown.

Kind regards

	robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/