Sha256: 131d2e410045c4c3f97ff6239cbc474fc1d9b10855eef4c5775b894c88435386

Contents?: true

Size: 503 Bytes

Versions: 25

Compression:

Stored size: 503 Bytes

Contents

require 'barby/barcode/code_25'

module Barby

  #The IATA version of 2 of 5 is identical to its parent except for different
  #start and stop codes. This is the one used on the tags they put on your
  #luggage when you check it in at the airport.
  class Code25IATA < Code25

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

    def start_encoding
      encoding_for_bars(START_ENCODING)
    end

    def stop_encoding
      encoding_for_bars_without_end_space(STOP_ENCODING)
    end

  end

end

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
barby-0.7.0 lib/barby/barcode/code_25_iata.rb
barby-0.6.9 lib/barby/barcode/code_25_iata.rb
barby-0.6.8 lib/barby/barcode/code_25_iata.rb
barby-0.6.7 lib/barby/barcode/code_25_iata.rb
barby-0.6.6 lib/barby/barcode/code_25_iata.rb
barby-0.6.5 lib/barby/barcode/code_25_iata.rb
barby-0.6.4 lib/barby/barcode/code_25_iata.rb
barby-0.6.3 lib/barby/barcode/code_25_iata.rb
barby-0.6.2 lib/barby/barcode/code_25_iata.rb
barby-0.6.1 lib/barby/barcode/code_25_iata.rb
barby-0.6.0 lib/barby/barcode/code_25_iata.rb
barby-0.5.1 lib/barby/barcode/code_25_iata.rb
arena_barby-0.3.2 lib/barby/barcode/code_25_iata.rb
barby-chunky_png-0.3.4 lib/barby/barcode/code_25_iata.rb
barby-0.5.0 lib/barby/barcode/code_25_iata.rb
barby-0.4.5 lib/barby/barcode/code_25_iata.rb
barby-0.4.4 lib/barby/barcode/code_25_iata.rb
barby-0.4.3 lib/barby/barcode/code_25_iata.rb
barby-0.4.2 lib/barby/barcode/code_25_iata.rb
barby-0.4.1 lib/barby/barcode/code_25_iata.rb