From 78ee185fde20c2cdd5a440d3d44ba9e939f03a11 Mon Sep 17 00:00:00 2001 From: Andy Meneely Date: Thu, 11 Jun 2015 17:19:32 -0400 Subject: [PATCH] Update sample to use cleaner syntax --- samples/layouts.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/layouts.rb b/samples/layouts.rb index 50bae4d..a96037f 100644 --- a/samples/layouts.rb +++ b/samples/layouts.rb @@ -1,5 +1,6 @@ # encoding: utf-8 require 'squib' +require 'pp' Squib::Deck.new(layout: 'custom-layout.yml') do background color: :white @@ -28,8 +29,8 @@ Squib::Deck.new(layout: 'custom-layout.yml') do text str: 'subtitle', layout: 'subtitle' # For debugging purposes, you can always print out the loaded layout - #require 'pp' - #pp @layout + # require 'pp' + # pp layout save_png prefix: 'layout_' end