class TwentyOne::AceCard
Public Class Methods
new(suit)
click to toggle source
Calls superclass method
# File lib/twenty_one/ace_card.rb, line 8 def initialize(suit) super suit, :ace @value = @@LOWER_VALUE end
Public Instance Methods
use_lower()
click to toggle source
# File lib/twenty_one/ace_card.rb, line 17 def use_lower @value = @@LOWER_VALUE end
use_upper()
click to toggle source
# File lib/twenty_one/ace_card.rb, line 13 def use_upper @value = @@UPPER_VALUE end