Sketching out a visitor pattern
parent
0c99082baf
commit
e37ca450c1
14
lib/squib.rb
14
lib/squib.rb
|
|
@ -1,17 +1,21 @@
|
||||||
require "squib/version"
|
|
||||||
|
|
||||||
module Squib
|
module Squib
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
##################
|
##################
|
||||||
### PUBLIC API ###
|
### PUBLIC API ###
|
||||||
##################
|
##################
|
||||||
|
|
||||||
|
def deck(width:, height:, cards: 1)
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
def font(type: , size: 12, **options)
|
def font(type: , size: 12, **options)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_font(type: 'Arial', size: 12, **options)
|
def set_font(type: 'Arial', size: 12, **options)
|
||||||
|
Squib::queue_command Squib::Commands::SetFont.new(type,size,options)
|
||||||
end
|
end
|
||||||
|
|
||||||
def text(range=:all, str: , font: :use_set, x: 0, y: 0, **options)
|
def text(range=:all, str: , font: :use_set, x: 0, y: 0, **options)
|
||||||
|
|
@ -24,4 +28,8 @@ def load_csv(file:, header: true)
|
||||||
end
|
end
|
||||||
|
|
||||||
def data(field)
|
def data(field)
|
||||||
|
end
|
||||||
|
|
||||||
|
def render
|
||||||
|
Squib::Verify::VerifyAll.
|
||||||
end
|
end
|
||||||
Loading…
Reference in New Issue