lib/cards_lib/card.rb in cards_lib-0.0.2 vs lib/cards_lib/card.rb in cards_lib-0.0.3

- old
+ new

@@ -1,11 +1,16 @@ module CardsLib class Card def initialize(face) + raise InvalidCardFace, "face cannot be blank" if face.to_s.empty? @face = face end def face @face end + end + + class InvalidCardFace < Exception + end end