Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial sketch of Ruby-based preset idea
- Loading branch information
1 parent
a55300f
commit 4b806bb
Showing
2 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
module Squib | ||
module Presets | ||
class TgcPoker | ||
|
||
def initialize(deck) | ||
@deck = deck | ||
end | ||
|
||
# The width of the deck to set, unless overridden in Squib.new | ||
def width | ||
825 | ||
end | ||
|
||
# The height of the deck to set, unless overridden in Squib.new | ||
def height | ||
1125 | ||
end | ||
|
||
# The DPI of the deck to set, unless overridden in Squib.new | ||
def dpi | ||
300 | ||
end | ||
|
||
# Executed before the main block | ||
def before | ||
@deck.use_layout('tgc_poker.yml') | ||
end | ||
|
||
def after | ||
# Nothing here that I can think of yet | ||
end | ||
|
||
def safe | ||
@deck.rect layout: :safe | ||
end | ||
|
||
def cut | ||
@deck.rect layout: :cut | ||
end | ||
|
||
def proof | ||
safe | ||
cut | ||
end | ||
|
||
end | ||
end | ||
end |