Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to choose between A, B or C modes for code_128 #6

Open
diogocsc opened this issue Dec 5, 2012 · 0 comments
Open

Ability to choose between A, B or C modes for code_128 #6

diogocsc opened this issue Dec 5, 2012 · 0 comments

Comments

@diogocsc
Copy link

diogocsc commented Dec 5, 2012

Hi, it would be nice to be able to choose the 128 mode.

BARBY works fine with A, but barby (smallcaps) doesn't.

My suggestion is to add a new option code128... so we could write it like this
has_barcode :barcode,
outputter: svg,
type: :code_128,
code128: 'B',
value: Proc.new { |p| "#{p.number}" }

is has_barcode.rb then we could do something like
@@barcode_configurations[args.first].barcode_class.new(options[:value].call(self), options[:code128])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant