Method: Barcode1DTools::Matrix2of5#width
- Defined in:
- lib/barcode1dtools/matrix2of5.rb
#width ⇒ Object
Returns the total unit width of the bar code.
218 219 220 |
# File 'lib/barcode1dtools/matrix2of5.rb', line 218 def width @width ||= rle.split('').inject(0) { |a,c| a + c.to_i } end |