Closed scott-steadman closed 10 years ago
Reason: to_s is ruby's idiomatic way of representing a class as a string.
Get rid of the display_value field, and add a to_s method that does the same thing.
def to_s "#{number}-#{suit}" end
@ss Thanks for all the great feedback. Ill get right on these. Got any input on the tests?
I'll take a look at the tests later. When I get a chance.
Moved to #2
Reason: to_s is ruby's idiomatic way of representing a class as a string.
Get rid of the display_value field, and add a to_s method that does the same thing.