Class: Constructs

Inherits:
Cards show all
Defined in:
lib/ascension/cards.rb

Instance Attribute Summary

Attributes inherited from Cards

#game, #side

Instance Method Summary collapse

Methods inherited from Cards

#<<, #[], #[]=, #banish, #clear!, #each, #empty?, #first, #get_one, #hydrate!, #include?, #index, #pop, #remove, #shuffle!, #size, #to_s_cards

Instance Method Details

#apply!Object



199
200
201
# File 'lib/ascension/cards.rb', line 199

def apply!
  each { |c| side.played.apply(c) }
end

#discard(card) ⇒ Object



202
203
204
205
# File 'lib/ascension/cards.rb', line 202

def discard(card)
  remove(card)
  side.discard << card
end