Class: Barby::Code128B

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::CODEC_CHARS_RE, Barby::Code128::CONTROL_CHARACTERS, Barby::Code128::CTRL_RE, Barby::Code128::DGTS_RE, Barby::Code128::ENCODINGS, Barby::Code128::FNC1, Barby::Code128::FNC2, Barby::Code128::FNC3, Barby::Code128::FNC4, Barby::Code128::LOWR_RE, Barby::Code128::SHIFT, Barby::Code128::STARTA, Barby::Code128::STARTB, Barby::Code128::STARTC, 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

apply_shortest_encoding_for_data, #change_code_encoding_for, #change_code_for, #change_code_for_class, #change_code_number_for, #characters, #checksum, #checksum_encoding, class_for, #class_for, #data, #data=, #data_encoding, #data_encoding_with_extra_encoding, determine_best_type_for_data, #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_character, #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) ⇒ Code128B

Returns a new instance of Code128B.



556
557
558
# File 'lib/barby/barcode/code_128.rb', line 556

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

Dynamic Method Handling

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