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