
January 16th, 2011, 07:29 AM
|
|
Registered User
|
|
Join Date: Jan 2011
Posts: 1
Time spent in forums: 20 m 22 sec
Reputation Power: 0
|
|
|
Ruby class variables question
Hello Ruby programmers, this is my post and I just want to know a bit more about class variables.
My project is a Yugioh card game. Each player will have a deck of cards fully customisable and each card has a certain amount of attributes associated to it. Want I want to know is how to hold all these attributes as variables inside a class and then extract the values outside of class. A good starting point I think would be to have a couple of cards and have a choice of them and then it displays all of the attributes of that card.
If you could give me a few pointers or steer me to a suitable tutorial or forum post.
Regards from your friendly neighbourhood Egyptian Ninja
|