Sha256: 3584e7ac5b6f6d281c7940f7176a88bce30f0f610a6c46011a4611899ae5728e
Contents?: true
Size: 342 Bytes
Versions: 2
Compression:
Stored size: 342 Bytes
Contents
module QRTools class Decoder class << self def decode image, size = 25, delta = 10 decoder = new(image) 25.step(3, -2) { |i| return decoder if decoder.decode(size, delta) } decoder end end def decode size = 25, delta = 10 native_decode(size, delta) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qrtools-1.0.0 | lib/qrtools/decoder.rb |
qrtools-1.0.1 | lib/qrtools/decoder.rb |