class RQRCodeCore::QR8bitByte
Public Class Methods
new(data)
click to toggle source
# File lib/rqrcode_core/qrcode/qr_8bit_byte.rb, line 5 def initialize(data) @data = data end
Public Instance Methods
write(buffer)
click to toggle source
# File lib/rqrcode_core/qrcode/qr_8bit_byte.rb, line 9 def write(buffer) buffer.byte_encoding_start(@data.bytesize) @data.each_byte do |b| buffer.put(b, 8) end end