The main interface to Squib. Yields to a block that is used for most of Squib’s operations. The majority of the DSL methods are instance methods of
These options set immutable properties for the life of the deck. They are not intended to be changed in the middle of Squib’s operation.
the width of each card in pixels, including bleed. Supports Unit Conversion (e.g.
the height of each card in pixels, including bleed. Supports Unit Conversion (e.g. ‘3.5in’).
the number of cards in the deck
the pixels per inch when rendering out to PDF, doing Unit Conversion, or other operations that require measurement.
the file used for global settings of this deck, see Configuration Options. If the file is not found, Squib does not complain.
Since this option has
config.ymlas a default, then Squib automatically looks up a
config.ymlin the current working directory.
load a YML file of custom layouts. Multiple files in an array are merged sequentially, redefining collisons in the merge process. If no layouts are found relative to the current working directory, then Squib checks for a built-in layout.