Cleaner handling of SVG ID

This commit is contained in:
Andy Meneely
2019-05-29 14:20:03 -04:00
parent 1c3b39b59d
commit a40c4d7dc4
4 changed files with 53 additions and 13 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ Squib::Deck.new(width: 825, height: 1125, cards: 1, config: 'load_images_config.
# but sometimes want to use none.
# e.g. id: [:attack, :defend, nil]
svg file: 'spanner.svg', width: :deck, height: :deck,
force_id: true, id: '' # <-- the important part
force_id: true, id: nil # <-- the important part
# Squib can handle incorrectly formatted svg files
svg file: 'bad-svg.svg'