class Hand
Public Class Methods
new()
click to toggle source
# File lib/hand.rb, line 2 def initialize @cards = Array.new end
Public Instance Methods
cards()
click to toggle source
# File lib/hand.rb, line 5 def cards #raise unless self.cards.size > 5 @cards end
to_s()
click to toggle source
# File lib/hand.rb, line 10 def to_s @cards.each do |card| puts card.suit.to_s + " " + card.value.to_s end '' end