andymeneely / squib

A Ruby DSL for prototyping card games.
http://squib.rocks
MIT License
917 stars 67 forks source link

Can I override the height+width of (or get a reference to) a card in a deck? #338

Closed mattparkes closed 2 years ago

mattparkes commented 2 years ago

I'm trying to do something stupid with Squib that it's not really meant to do and use it to print some labels, all of different sizes. I have the sizes in my deck.csv and I'd love it if I could easily set the height and width of the "card" programatically somehow, but all in the one squib::Deck.new() to keep things clean.

Is this possible?

andymeneely commented 2 years ago

The intent is that if you have a different dimensions, then that would be a different "deck". So no... although nothing is stopping you from putting Squib::Deck.new in a loop!