Module: IsoDoc::XrefGen::OlTypeProvider

Defined in:
lib/isodoc/plateau/xref.rb

Instance Method Summary collapse

Instance Method Details

#ol_type(list, depth) ⇒ Object

revert to ISO default



5
6
7
8
9
10
11
12
13
14
# File 'lib/isodoc/plateau/xref.rb', line 5

def ol_type(list, depth)
  return list["type"].to_sym if list["type"]
  return :arabic if [2, 7].include? depth
  return :alphabet if [1, 6].include? depth
  return :alphabet_upper if [4, 9].include? depth
  return :roman if [3, 8].include? depth
  return :roman_upper if [5, 10].include? depth

  :arabic
end