class Saxlsx::ColumnNameGenerator
Constants
- FIRST
- LAST
Public Class Methods
next_to(previous)
click to toggle source
# File lib/saxlsx/column_name_generator.rb, line 7 def self.next_to(previous) char = previous ? previous[-1] : nil if char.nil? FIRST elsif char < LAST previous[0..-2] + char.next else next_to(previous[0..-2]) + FIRST end end