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



11
12
13
14
15
16
# File 'lib/isodoc/jis/xref.rb', line 11

def listlabel(_list, depth)
  case depth
  when 1 then (96 + @num).chr.to_s
  else @num.to_s
  end
end

#ol_type(list, depth) ⇒ Object



4
5
6
7
8
9
# File 'lib/isodoc/jis/xref.rb', line 4

def ol_type(list, depth)
  return list["type"].to_sym if list["type"]
  return :alphabet if depth == 1

  :arabic
end