Module: IsoDoc::XrefGen::OlTypeProvider
- Defined in:
- lib/isodoc/itu/xref.rb
Instance Method Summary collapse
Instance Method Details
#ol_type(list, depth) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/isodoc/itu/xref.rb', line 9 def ol_type(list, depth) steps = list["class"] == "steps" || list.at(".//ancestor::xmlns:ol[@class = 'steps']") !steps && list["type"] and return list["type"].to_sym if list["type"] type = steps ? :arabic : :alphabet type = (steps ? :alphabet : :arabic) if [2, 7].include? depth type = :roman if [3, 8].include? depth type = :alphabet_upper if [4, 9].include? depth type = :roman_upper if [5, 10].include? depth type end |