title: Data structures for a Blackjack game
body: <p>I'm trying to learn how to use Ruby and as my first application I'd like to build a console based Blackjack game.</p>
  
  <p>I'm not too familiar with the Ruby constructs and the only way I'll learn and feel at home is build things and learn from my mistakes.</p>
  
  <p>I'm thinking of creating a Card class, and has a Stack class has a collection of Cards.</p>
  
  <p>However I don't know exactly what built in type I need to use to hold these Card objects.</p>
  
  <p>Here is my card class:</p>
  
  <pre><code>class Card
  
    attr_accessor :number, :suit
  
    def initialize(number, suit)
      @number = number
      @suit = suit
    end
  
    def to_s
      "#{@number} of #{@suit}"
    end
  end
  </code></pre>
  
  <p>Since I'm coming from C#, I thought of using something like List Cards {get;set;} - does something like this exists in Ruby or maybe there is a better more rubyesque way to do this.</p>