vendor/bundle/ruby/2.6.0/gems/lumberjack-1.2.8/lib/lumberjack/device/size_rolling_log_file.rb
def next_archive_number # :nodoc:
        max = 0
        Dir.glob("#{path}.*").each do |filename|
          if /\.\d+\z/ =~ filename
            suffix = filename.split(".").last.to_i
            max = suffix if suffix > max
          end
        end
        max + 1
      end
# Calculate the next archive file name extension.
Calculate the next archive file name extension.
Calculate the next archive file name extension .
def next_archive_number 
        max = 0
        Dir.glob("#{path}.*").each do |filename|
          if /\.\d+\z/ =~ filename
            suffix = filename.split(".").last.to_i
            max = suffix if suffix > max
          end
        end
        max + 1
      end
def next_archive_number max = 0 Dir . glob ( "#{path}.*" ) . each do | filename | if / \. \d + \z / =~ filename suffix = filename . split ( "." ) . last . to_i max = suffix if suffix > max end end max + 1 end
Calculate the next archive file name extension.
Calculate the next archive file name extension .
# :nodoc: