Class: Patience::Waste
Overview
Patience::Area::Waste is a class, which represents Waste area of the game. By now, it’s backed up only with methods from the Area class.
waste = Area::Waste.new
waste.piles.size #=> 1
Instance Attribute Summary
Attributes inherited from Area
Instance Method Summary collapse
-
#initialize ⇒ Waste
constructor
A new instance of Waste.
Methods inherited from Area
#add_from, #cards, #draw_on, #hit?, #pos, #pos=
Constructor Details
#initialize ⇒ Waste
Returns a new instance of Waste.
12 13 14 15 16 |
# File 'lib/patience/waste.rb', line 12 def initialize super([], 1) self.pos = [141, 27] self.piles[0].background = Ray::Sprite.new # Emptiness. end |