Module: IsoDoc::XrefGen::OlTypeProvider

Included in:
Counter
Defined in:
lib/isodoc/xref/ol_type_provider.rb

Instance Method Summary collapse

Instance Method Details

#ol_type(list, depth) ⇒ Object



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

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