Class Barby::Code25Interleaved
In: lib/barby/barcode/code_25_interleaved.rb
Parent: Code25

Code 2 of 5 interleaved. Same as standard 2 of 5, but spaces are used for encoding as well as the bars. Each pair of numbers get interleaved, that is, the first is encoded in the bars and the second is encoded in the spaced. This means an interleaved 2/5 barcode must have an even number of digits.

Methods

Constants

START_ENCODING = [N,N,N,N]
STOP_ENCODING = [W,N,N]

Public Instance methods

Encodes an array of interleaved W or N bars and spaces ex: [W,N,W,W,N,N] => "111011100010"

[Validate]