Adding in a png method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user