Class: PokerRanking::HandType::HighCard

Inherits:
Base
  • Object
show all
Defined in:
lib/hand_type/high_card.rb

Instance Attribute Summary

Attributes inherited from Base

#cards

Instance Method Summary collapse

Methods inherited from Base

#cards_for_values_and_kickers, #cards_in_straight, #highest_same_value, #highest_same_value_except, #initialize, #kickers, #n_of_a_kind?, #number_of_kickers, #second_value, #straight_value_of, #value

Constructor Details

This class inherits a constructor from PokerRanking::HandType::Base

Instance Method Details

#cards_usedObject



17
18
19
# File 'lib/hand_type/high_card.rb', line 17

def cards_used
  cards_for_values_and_kickers
end

#handles?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/hand_type/high_card.rb', line 5

def handles?
  true
end

#nameObject



13
14
15
# File 'lib/hand_type/high_card.rb', line 13

def name
  'high card'
end

#rankObject



9
10
11
# File 'lib/hand_type/high_card.rb', line 9

def rank
  0
end