Skip to content

Instantly share code, notes, and snippets.

@jayuen
Created February 9, 2014 20:56
Show Gist options
  • Save jayuen/8905819 to your computer and use it in GitHub Desktop.
Save jayuen/8905819 to your computer and use it in GitHub Desktop.
require 'barby/barcode/code_25_interleaved'
module CustomOutputs::BarcodeGenerator
def generate_barcode_25 text
barcode = Barby::Code25Interleaved.new(text)
barcode.to_html.html_safe
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment