Stefano Crocco wrote:
> It seems your code is something like
> 
> Array.push 'a'
> 
> This doesn't work because push is an instance method of the Array class, 
> that is: you need to call it on an individual array (an instance of class 
> Array), not on the Array class itself. This is how you should do it:
> 
> a = Array.new
> 
> a.push 'string'
>
> I hope this helps
> 
> Stefano

Thanks a lot, that's exactly what I needed to know :)
-- 
Posted via http://www.ruby-forum.com/.