On 04/29/2013 02:50 PM, Joel Pearson wrote:
> Can you show the class internals, particularly the initialize and to_s
> methods?
>
sure I can
-------->
class Card
attr_accessor :cnumber, :set, :rarity, :cname

     def initialize(cnumber,set,rarity,cname)

         @cnumber = cnumber[0..3]
         @set = set[4..6]
         @rarity = rarity[8..9]
         @cname = cname [10..50]
     end

     def to_s
         puts "#{cnumber} |#{set}| #{rarity}| #{cname}"
     end

     def to_set
         puts "#{set}"
     end

end