I want to have an array as a instance variable using attr_accessor.
attr_accessor
But isn\'t attr_accessor only for strings?
How do I use it on an ar
class SomeObject attr_accessor :array def initialize self.array = [] end end o = SomeObject.new o.array.push :a o.array.push :b o.array << :c o.array.inspect #=> [:a, :b, :c]