Class: Barby::Code128A

Inherits:
Code128 show all
Defined in:
lib/barby/barcode/code_128.rb

Constant Summary

Constants inherited from Code128

Barby::Code128::CODEA, Barby::Code128::CODEB, Barby::Code128::CODEC, Barby::Code128::ENCODINGS, Barby::Code128::FNC1, Barby::Code128::FNC2, Barby::Code128::FNC3, Barby::Code128::FNC4, Barby::Code128::STOP, Barby::Code128::TERMINATE, Barby::Code128::VALUES

Instance Attribute Summary

Attributes inherited from Code128

#type

Instance Method Summary collapse

Methods inherited from Code128

#change_code_encoding_for, #change_code_for, #change_code_for_class, #change_code_number_for, #characters, #checksum, #checksum_encoding, #class_for, #data, #data=, #data_encoding, #data_encoding_with_extra_encoding, #encoding, #encoding_for, #encodings, #extra, #extra=, #extra_encoding, #extra_numbers, #full_data, #full_data_with_change_codes, #full_extra_data, #full_extra_data_with_change_code, #numbers, #start_encoding, #start_num, #stop_encoding, #to_s, #valid?, #values

Methods inherited from Barcode

#encoding, #method_missing, #outputter_class_for, #outputter_for, outputters, register_outputter, #to_s, #two_dimensional?, #valid?

Constructor Details

#initialize(data) ⇒ Code128A

Returns a new instance of Code128A.



385
386
387
# File 'lib/barby/barcode/code_128.rb', line 385

def initialize(data)
  super(data, 'A')
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Barby::Barcode