Adding in a png method

This commit is contained in:
Andy Meneely
2014-07-16 23:14:56 -04:00
parent 7e86630ad7
commit 6c1d32a8cd
6 changed files with 25 additions and 3 deletions
+3 -1
View File
@@ -2,7 +2,9 @@ module Squib
class Deck
def png(range=:all, file: nil, x: 0, y: 0)
raise 'Not implemented!'
range = rangeify(range)
file = fileify(file)
range.each{ |i| @cards[i].png(file, x, y) }
end
end