#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2011
    Posts
    1
    Rep 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
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Posts
    7
    Rep Power
    0
    http://pragprog.com/titles/ruby3/programming-ruby

IMN logo majestic logo threadwatch logo seochat tools logo