Sha256: 9c31edec8c0ef8b97936a86f813de7dbde5d8f2e6ff2230d35c733eb28b5bc2f
Contents?: true
Size: 369 Bytes
Versions: 2
Compression:
Stored size: 369 Bytes
Contents
module Languages class Zpl2 class Speed def initialize(amount) set(amount) end def render "^PR#{@amount},D,A" end private def set(amount) @amount = case(amount) when :slow '1' when :normal 'A' when :fast 'C' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zebra_printer-0.9.0 | lib/languages/zpl2/speed.rb |
zebra_printer-0.8.0 | lib/languages/zpl2/speed.rb |