Sha256: 1a530313b3b5e34778f813c6438382d4b909c8e50a05e8c65a83441b6d725b47
Contents?: true
Size: 210 Bytes
Versions: 2
Compression:
Stored size: 210 Bytes
Contents
require 'twenty_one/card' module TwentyOne class FaceCard < Card attr_reader :name def initialize(suit, name) super suit, 10 @name = name end def to_s "#{@name} 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/face_card.rb |
twenty_one-0.1.0 | lib/twenty_one/face_card.rb |