Browse Source

Putzing around

dev
Andy Meneely 12 years ago
parent
commit
a6e3faa003
  1. 5
      bin/squib
  2. 13
      lib/squib.rb

5
bin/squib

@ -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'

13
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 ### ### 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
Loading…
Cancel
Save