toretore / barby

The Ruby barcode generator
http://toretore.github.com/barby/
MIT License
844 stars 169 forks source link

Udate Documentation #86

Closed gdurelle closed 6 years ago

gdurelle commented 6 years ago

Documentation provide here : http://toreto.re/barby/ is out of date

For example, the first chunk of code should be :

require 'barby'
require 'barby/outputter/png_outputter'
require 'barby/barcode/code_128'
barcode = Barby::Code128B.new('The noise of mankind has become too much')
File.open('code128b.png', 'wb'){|f|
  f.write barcode.to_png(:height => 20, :margin => 5)
}

=> the documentation misses a require and the wb option in File.open