class RQRCodeCore::QRPolynomial

def initialize(num, shift)

Experimental RBS support (using type sampling data from the type_fusion project).

def initialize: (Array[Integer] num, Integer shift) -> void

This signature was generated using 8 samples from 1 application.

def initialize(num, shift)
  raise QRCodeRunTimeError, "#{num.size}/#{shift}" if num.empty?
  offset = 0
  while offset < num.size && num[offset] == 0
    offset += 1
  end
  @num = Array.new(num.size - offset + shift)
  (0...num.size - offset).each do |i|
    @num[i] = num[i + offset]
  end
end