From a6e3faa003a25b7a0c909b86b0bafafb2cf08da6 Mon Sep 17 00:00:00 2001 From: Andy Meneely Date: Tue, 8 Jul 2014 22:36:19 -0400 Subject: [PATCH] Putzing around --- bin/squib | 5 +++++ lib/squib.rb | 13 +++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/bin/squib b/bin/squib index fd7fe14..49d56b8 100644 --- a/bin/squib +++ b/bin/squib @@ -1,2 +1,7 @@ #!/usr/bin/env ruby +require 'squib' + +font type: 'Rockwell' +set_font type: 'Rockwell' +set_font type: 'Rockwell' diff --git a/lib/squib.rb b/lib/squib.rb index f386750..2f06fe2 100644 --- a/lib/squib.rb +++ b/lib/squib.rb @@ -1,6 +1,8 @@ -module Squib +require 'squib/commands/command' +require 'squib/commands/font' +require 'squib/commands/set_font' +require 'squib/queue' -end ################## ### PUBLIC API ### @@ -11,7 +13,7 @@ def deck(width:, height:, cards: 1) end def font(type: , size: 12, **options) - + Squib::queue_command Squib::Commands::Font.new(type,size,options) end def set_font(type: 'Arial', size: 12, **options) @@ -31,5 +33,8 @@ def data(field) end def render - Squib::Verify::VerifyAll. + vv = VerifyVisitor.new + CMDS.each do |cmd| + cmd.accept(vv) + end end \ No newline at end of file