Class: IsoDoc::Jis::Counter

Inherits:
XrefGen::Counter
  • Object
show all
Defined in:
lib/isodoc/jis/xref.rb

Instance Method Summary collapse

Instance Method Details

#listlabel(_list, depth) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/isodoc/jis/xref.rb', line 14

def listlabel(_list, depth)
  case depth
  when 1 then (96 + @num).chr.to_s
  else
    if @style == :japanese
      @num.localize(:ja).spellout
    else
      @num.to_s
    end
  end
end