class Shithead::Card
Constants
- RANKS
- SUITES
Attributes
suite[R]
value[R]
Public Class Methods
new(suite, value)
click to toggle source
# File lib/shithead/card.rb, line 26 def initialize(suite, value) @suite = suite @value = value end
Public Instance Methods
rank()
click to toggle source
# File lib/shithead/card.rb, line 31 def rank RANKS[value] end
to_s()
click to toggle source
# File lib/shithead/card.rb, line 35 def to_s "#{value}#{SUITES[suite]}" end