Sha256: 522f237a5510b5774b29c75aa1fda87e8fcdf42fb2b5837aec7d8dcc465fe4a9
Contents?: true
Size: 780 Bytes
Versions: 13
Compression:
Stored size: 780 Bytes
Contents
require 'squib' require_relative 'version' # Note: run this code by running "rake" at the command line # To see full list of options, run "rake -T" data = Squib.xlsx file: 'data/game.xlsx', sheet: 0 Squib::Deck.new(cards: data.nrows) do background color: :white use_layout file: 'layouts/deck.yml' text str: data.name, layout: :name text str: data.atk.map { |s| "#{s} ATK" }, layout: :ATK text str: data.def.map { |s| "#{s} DEF" }, layout: :DEF svg file: 'example.svg' text str: MySquibGame::VERSION, layout: :version build(:proofs) do safe_zone cut_zone end save format: :png build(:pnp) do save_sheet prefix: 'pnp_sheet_', trim: '0.125in', rows: 3, columns: 3 end end
Version data entries
13 entries across 13 versions & 1 rubygems