From: MrZombie Date: 2010-05-18T23:05:09+09:00 Subject: Re: class arrays On 2010-05-18 09:38:14 -0400, poseid said: > Hello, > > how does this work? > > thanks Erh, not that way. Sorry. You could have class A @b = [1,2,3] end Which stores the array in a class-level instance variable. This other one class A @@b = [1,2,3] end stores the array in a class variable. An instance variable would (or could, anyway) be used like this class A def initialize @b = [1,2,3] end #accessor methods def b @b end def b= (value) @b = value end end Also, you can shorten the accessor methods to class A attr_accessor :b def initialize @b = [1,2,3] end end -- Thank you for your brain. -MrZombie