January 16th, 2011, 08:29 AM
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
February 7th, 2011, 07:48 AM