Module: RQRCode
- Defined in:
- lib/rqrcode/qrcode/qr_code.rb,
lib/rqrcode/version.rb,
lib/rqrcode/qrcode/qr_math.rb,
lib/rqrcode/qrcode/qr_util.rb,
lib/rqrcode/qrcode/qr_rs_block.rb,
lib/rqrcode/qrcode/qr_8bit_byte.rb,
lib/rqrcode/qrcode/qr_bit_buffer.rb,
lib/rqrcode/qrcode/qr_polynomial.rb,
lib/rqrcode/core_ext/array/behavior.rb,
lib/rqrcode/core_ext/integer/bitwise.rb
Overview
Permission is granted for use, copying, modification, distribution, and distribution of modified versions of this work as long as the above copyright notice is included. ++
Defined Under Namespace
Modules: CoreExtensions Classes: QR8bitByte, QRBitBuffer, QRCode, QRCodeArgumentError, QRCodeRunTimeError, QRMath, QRPolynomial, QRRSBlock, QRUtil
Constant Summary collapse
- VERSION =
"0.4.2"
- QRMODE =
:nodoc:
{ :mode_number => 1 << 0, :mode_alpha_numk => 1 << 1, :mode_8bit_byte => 1 << 2, :mode_kanji => 1 << 3 }
- QRERRORCORRECTLEVEL =
{ :l => 1, :m => 0, :q => 3, :h => 2 }
- QRMASKPATTERN =
{ :pattern000 => 0, :pattern001 => 1, :pattern010 => 2, :pattern011 => 3, :pattern100 => 4, :pattern101 => 5, :pattern110 => 6, :pattern111 => 7 }
- QRMASKCOMPUTATIONS =
[ Proc.new { |i,j| (i + j) % 2 == 0 }, Proc.new { |i,j| i % 2 == 0 }, Proc.new { |i,j| j % 3 == 0 }, Proc.new { |i,j| (i + j) % 3 == 0 }, Proc.new { |i,j| ((i / 2).floor + (j / 3).floor) % 2 == 0 }, Proc.new { |i,j| (i * j) % 2 + (i * j) % 3 == 0 }, Proc.new { |i,j| ((i * j) % 2 + (i * j) % 3) % 2 == 0 }, Proc.new { |i,j| ((i * j) % 3 + (i + j) % 2) % 2 == 0 }, ]
- QRPOSITIONPATTERNLENGTH =
(7 + 1) * 2 + 1
- QRFORMATINFOLENGTH =
15