class Center
Public Instance Methods
banish(card)
click to toggle source
Calls superclass method
Cards#banish
# File lib/ascension/cards.rb, line 159 def banish(card) super fill! end
fill!()
click to toggle source
# File lib/ascension/cards.rb, line 142 def fill! (0...size).each do |i| if self[i].name == 'Dummy' self[i] = game.deck.pop end end while size < 6 self << game.deck.pop end end
remove(c)
click to toggle source
# File lib/ascension/cards.rb, line 153 def remove(c) raise "#{c} not here" unless include?(c) i = index(c) self[i] = Card.dummy fill! end