Class | Barby::EAN8 |
In: |
lib/barby/barcode/ean_8.rb
|
Parent: | EAN13 |
EAN-8 is a sub-set of EAN-13, with only 7 (8) digits
FORMAT | = | /^\d{7}$/ |
Left-hand digits are all encoded using odd parity
# File lib/barby/barcode/ean_8.rb, line 21 21: def left_parity_map 22: [:odd, :odd, :odd, :odd] 23: end