diff --git a/lib/rqrcode/qrcode/qr_code.rb b/lib/rqrcode/qrcode/qr_code.rb index 5460b9c9..886aa34c 100644 --- a/lib/rqrcode/qrcode/qr_code.rb +++ b/lib/rqrcode/qrcode/qr_code.rb @@ -178,7 +178,7 @@ def prepare_common_patterns place_position_probe_pattern(@module_count - 7, 0) place_position_probe_pattern(0, @module_count - 7) place_position_adjust_pattern - setup_timing_pattern + place_timing_pattern @common_patterns = @modules.map(&:clone) end @@ -234,7 +234,7 @@ def get_best_mask_pattern #:nodoc: end - def setup_timing_pattern #:nodoc: + def place_timing_pattern #:nodoc: ( 8...@module_count - 8 ).each do |i| @modules[i][6] = @modules[6][i] = i % 2 == 0 end