class TwentyOne::Card

Attributes

suit[R]
value[R]

Public Class Methods

new(suit, value = nil) click to toggle source
# File lib/twenty_one/card.rb, line 5
def initialize(suit, value = nil)
        @suit = suit 
        @value = value
end

Public Instance Methods

to_s() click to toggle source
# File lib/twenty_one/card.rb, line 10
def to_s
        "#{@value} of #{@suit}"
end