This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 8aad6ec3cae6db7163d19a1b10db5e7d70d459a8
tree ec29a14a3d542fa19d4eb170e6bb9d2b9b813c89
parent fd52e48bfba49652c7bcc365d09bcec8c4471190
tree ec29a14a3d542fa19d4eb170e6bb9d2b9b813c89
parent fd52e48bfba49652c7bcc365d09bcec8c4471190
barby /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sun Feb 17 12:49:50 -0800 2008 | |
| |
CHANGELOG | Sat Jun 20 13:52:04 -0700 2009 | |
| |
LICENSE | Mon Mar 17 06:16:18 -0700 2008 | |
| |
README | Mon Mar 17 14:05:14 -0700 2008 | |
| |
Rakefile | Sat Jun 20 13:52:04 -0700 2009 | |
| |
bin/ | Mon Nov 24 11:51:37 -0800 2008 | |
| |
lib/ | Sat Jun 20 13:52:04 -0700 2009 | |
| |
pkg/ | Mon May 25 11:45:41 -0700 2009 | |
| |
site/ | Mon May 25 12:06:47 -0700 2009 | |
| |
spec/ | ||
| |
vendor/ | Sat Jun 20 13:52:04 -0700 2009 |
README
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








