Sketching out a visitor pattern
This commit is contained in:
+11
-3
@@ -1,17 +1,21 @@
|
||||
require "squib/version"
|
||||
|
||||
module Squib
|
||||
|
||||
end
|
||||
|
||||
##################
|
||||
### PUBLIC API ###
|
||||
##################
|
||||
|
||||
def deck(width:, height:, cards: 1)
|
||||
|
||||
end
|
||||
|
||||
def font(type: , size: 12, **options)
|
||||
|
||||
end
|
||||
|
||||
def set_font(type: 'Arial', size: 12, **options)
|
||||
|
||||
Squib::queue_command Squib::Commands::SetFont.new(type,size,options)
|
||||
end
|
||||
|
||||
def text(range=:all, str: , font: :use_set, x: 0, y: 0, **options)
|
||||
@@ -25,3 +29,7 @@ end
|
||||
|
||||
def data(field)
|
||||
end
|
||||
|
||||
def render
|
||||
Squib::Verify::VerifyAll.
|
||||
end
|
||||
Reference in New Issue
Block a user