Method: IsoDoc::XrefGen::Counter#listlabel
- Defined in:
- lib/isodoc/xref/xref_counter.rb
#listlabel(list, depth) ⇒ Object
172 173 174 175 176 177 178 179 180 |
# File 'lib/isodoc/xref/xref_counter.rb', line 172 def listlabel(list, depth) case ol_type(list, depth) when :arabic then @num.to_s when :alphabet then (96 + @num).chr.to_s when :alphabet_upper then (64 + @num).chr.to_s when :roman then RomanNumerals.to_roman(@num).downcase when :roman_upper then RomanNumerals.to_roman(@num).upcase end end |