Update sample to use cleaner syntax

This commit is contained in:
Andy Meneely
2015-06-11 17:19:32 -04:00
parent 243b3836c4
commit 78ee185fde
+3 -2
View File
@@ -1,5 +1,6 @@
# encoding: utf-8 # encoding: utf-8
require 'squib' require 'squib'
require 'pp'
Squib::Deck.new(layout: 'custom-layout.yml') do Squib::Deck.new(layout: 'custom-layout.yml') do
background color: :white background color: :white
@@ -28,8 +29,8 @@ Squib::Deck.new(layout: 'custom-layout.yml') do
text str: 'subtitle', layout: 'subtitle' text str: 'subtitle', layout: 'subtitle'
# For debugging purposes, you can always print out the loaded layout # For debugging purposes, you can always print out the loaded layout
#require 'pp' # require 'pp'
#pp @layout # pp layout
save_png prefix: 'layout_' save_png prefix: 'layout_'
end end