lib/cards_lib/ranker.rb in cards_lib-0.0.6 vs lib/cards_lib/ranker.rb in cards_lib-0.0.7

- old
+ new

@@ -18,7 +18,11 @@ end def inspect @rank end + + def sequential(item) + (@rank_lookup[self.rank] - @rank_lookup[item.rank]).abs == 1 + end end end