class Rank::TwoPairs

Constants

SCORE

Public Instance Methods

<=>(hand) click to toggle source
# File lib/rank/two_pairs.rb, line 6
def <=>(hand)
  (@hand.only_values - hand.only_values).max <=> (hand.only_values - @hand.only_values).max
end