class EulerPoker::FourOfAKind
Public Instance Methods
instance_comparison(other)
click to toggle source
# File lib/euler_poker/hands/four_of_a_kind.rb, line 5 def instance_comparison(other) return quartet_rank <=> other.quartet_rank end
quartet_rank()
click to toggle source
# File lib/euler_poker/hands/four_of_a_kind.rb, line 9 def quartet_rank rank_counts .find { |rank, count| count == 4 } .first end
valid?()
click to toggle source
# File lib/euler_poker/hands/four_of_a_kind.rb, line 15 def valid? four_of_a_kind? end