Method: Card#==

Defined in:
lib/playing_cards/card.rb

#==(another_card) ⇒ Object



9
10
11
# File 'lib/playing_cards/card.rb', line 9

def == another_card
  rank == another_card.rank && suit == another_card.suit
end