PhoenixTilea
Member
Okay, I've been looking around and can't seem to figure this out...
How do you access arrays in a certain class from a different class?
LIke... If Class1 had @array1, how could I access that array from Class2. I've tried using attr_accessor :array1 (for example, not really that), but I don't really even now how the attr_accessor works... I've just been trying to do array = Class1.array and it's not working...
...Am I making any sense?
How do you access arrays in a certain class from a different class?
LIke... If Class1 had @array1, how could I access that array from Class2. I've tried using attr_accessor :array1 (for example, not really that), but I don't really even now how the attr_accessor works... I've just been trying to do array = Class1.array and it's not working...
...Am I making any sense?