Sha256: 49f2315dcc9c69e0b7cf91f6183034d733844fad614212742bfb64a7ec15358d
Contents?: true
Size: 1.65 KB
Versions: 16
Compression:
Stored size: 1.65 KB
Contents
Barby is a Ruby barcode generator. It does not depend on other libraries (for the core functionality) and is easily extentable. The barcode objects are separated from the process of generating graphical (or other) representations. A barcode's only responsibility is to provide a string representation consisting of 1s and 0s representing bars and spaces. This string can then be used to generate (for example) an image with the RMagickOutputter, or an ASCII string such as the one below. See Barby::Barcode and Barby::Outputter for more information. require 'barby' require 'barby/outputter/ascii_outputter' barcode = Barby::Code128B.new('BARBY') puts barcode.to_ascii ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ## ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ## ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ## ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ## ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ## ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ## ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ## ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ## ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ## ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ## B A R B Y
Version data entries
16 entries across 16 versions & 3 rubygems