Class: Hand
Instance Method Summary collapse
- #cards ⇒ Object
-
#initialize(*card_strings) ⇒ Hand
constructor
A new instance of Hand.
- #to_s ⇒ Object
Constructor Details
Instance Method Details
#cards ⇒ Object
179 180 181 |
# File 'lib/hand_rank/test.rb', line 179 def cards @cards end |
#to_s ⇒ Object
183 184 185 |
# File 'lib/hand_rank/test.rb', line 183 def to_s @cards.map(&:to_s).join(', ') end |