Method: IsoDoc::XrefGen::Counter#string_inc
- Defined in:
- lib/isodoc/xref/xref_counter.rb
#string_inc(str, start) ⇒ Object
103 104 105 106 107 |
# File 'lib/isodoc/xref/xref_counter.rb', line 103 def string_inc(str, start) return start if str.empty? str[0..-2] + (str[-1].ord + 1).chr.to_s end |