# File lib/rqrcode/qrcode/qr_rs_block.rb, line 297 def QRRSBlock.get_rs_block_table(version, error_correct_level) case error_correct_level when QRERRORCORRECTLEVEL[:l] QRRSBlock::RS_BLOCK_TABLE[(version - 1) * 4 + 0] when QRERRORCORRECTLEVEL[:m] QRRSBlock::RS_BLOCK_TABLE[(version - 1) * 4 + 1] when QRERRORCORRECTLEVEL[:q] QRRSBlock::RS_BLOCK_TABLE[(version - 1) * 4 + 2] when QRERRORCORRECTLEVEL[:h] QRRSBlock::RS_BLOCK_TABLE[(version - 1) * 4 + 3] else nil end end