lib/poker_hand/card.rb
def build_card(face, suit)
    @face  = FACE_VALUES[face.upcase]
    @suit  = SUIT_VALUES[suit.upcase]
    fail ArgumentError, 'Invalid card' unless @face && @suit
  end
# build card from face and suit. Upcase to make sure it can map with FACE_VALUES and SUIT_VALUES
build card from face and suit. Upcase to make sure it can map with FACE_VALUES and SUIT_VALUES
build card from face and suit . Upcase to make sure it can map with FACE_VALUES and SUIT_VALUES
def build_card(face, suit)
    @face  = FACE_VALUES[face.upcase]
    @suit  = SUIT_VALUES[suit.upcase]
    fail ArgumentError, 'Invalid card' unless @face && @suit
  end
def build_card ( face , suit ) @face = FACE_VALUES [ face . upcase ] @suit = SUIT_VALUES [ suit . upcase ] fail ArgumentError , 'Invalid card' unless @face && @suit end
build card from face and suit.
build card from face and suit .
face
suit