Example of svg id being supplied, better input handling of svg ids

This commit is contained in:
Andy Meneely
2014-07-23 13:17:46 -04:00
parent 9784d928d1
commit b4702e1d4a
4 changed files with 22 additions and 7 deletions
+1
View File
@@ -30,6 +30,7 @@ module Squib
def svg(range: :all, file: nil, id: nil, x: 0, y: 0, width: :native, height: :native)
range = rangeify(range)
file = fileify(file)
id = idify(id)
range.each{ |i| @cards[i].svg(file, id, x, y, width, height) }
end