Sha256: 91d216ef6ce8ec797b7b1ab74ae90a7013e45491e3cbfd70820ca847a49042d8
Contents?: true
Size: 190 Bytes
Versions: 2
Compression:
Stored size: 190 Bytes
Contents
module TwentyOne class Card attr_reader :suit, :value def initialize(suit, value = nil) @suit = suit @value = value end def to_s "#{@value} of #{@suit}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twenty_one-0.1.1 | lib/twenty_one/card.rb |
twenty_one-0.1.0 | lib/twenty_one/card.rb |