To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorPosition
position set the origin for anything with the
block or from last call. Any use of the :at
option move the location relative to the set
position
- Scenarios
-
- Position block ZPL2
-
- Given
-
a DSL with:
ZebraPrinterDocument.new do language :zpl2 position(12,34) do text '' end end
- When
- I execute the DSL
- Then
- the output should include "^FO12,34"
- And
- the output should include "^FD^FS"
- Position block ZPL2
-
- Given
-
a DSL with:
ZebraPrinterDocument.new do language :zpl2 position(12,34) do text '', :at => [10,10] end end
- When
- I execute the DSL
- Then
- the output should include "^FO22,44"
- And
- the output should include "^FD^FS"
Last published over 7 years ago by Paul Mitchell.