lib/holdem/poker_hand.rb in holdem-1.0.0 vs lib/holdem/poker_hand.rb in holdem-1.0.1

- old
+ new

@@ -1,12 +1,13 @@ +require 'forwardable' + class PokerHand include Comparable extend Forwardable - def_delegators :@poker_rank, :rank, :score - rank_methods = [ :straight_flush?, :quads?, :four_of_a_kind?, :boat?, - :full_house?, :flush?, :straight?, :three_of_a_kind?, + rank_methods = [ :rank, :score, :straight_flush?, :quads?, :four_of_a_kind?, + :boat?, :full_house?, :flush?, :straight?, :three_of_a_kind?, :trips?, :two_pairs?, :two_pair?, :pair? ] def_delegators :@poker_rank, *rank_methods attr_reader :cards, :poker_rank @@ -28,6 +29,6 @@ end def to_s "#{just_cards} -> #{rank}" end -end \ No newline at end of file +end