Putzing around

dev
Andy Meneely 2014-07-08 22:36:19 -04:00
parent e37ca450c1
commit a6e3faa003
2 changed files with 14 additions and 4 deletions

View File

@ -1,2 +1,7 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require 'squib'
font type: 'Rockwell'
set_font type: 'Rockwell'
set_font type: 'Rockwell'

View File

@ -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 ### ### PUBLIC API ###
@ -11,7 +13,7 @@ def deck(width:, height:, cards: 1)
end end
def font(type: , size: 12, **options) def font(type: , size: 12, **options)
Squib::queue_command Squib::Commands::Font.new(type,size,options)
end end
def set_font(type: 'Arial', size: 12, **options) def set_font(type: 'Arial', size: 12, **options)
@ -31,5 +33,8 @@ def data(field)
end end
def render def render
Squib::Verify::VerifyAll. vv = VerifyVisitor.new
CMDS.each do |cmd|
cmd.accept(vv)
end
end end