Re: [Wtr-general] length not recognized for array within a class

2007-06-04 Thread reinier
thanks, that was the solution ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] length not recognized for array within a class

2007-05-14 Thread Charley Baker
Hi there, In this case you've created @aObjects as a class instance variable, which means it's not visible to instance methods. Add a constructor to set it up instead: class CLWindow def initialize @aObjects = Array.new end def add_object puts @aObjects.length end end cl =