Class: Coradoc::Element::List::Ordered

Inherits:
Core
  • Object
show all
Defined in:
lib/coradoc/element/list/ordered.rb

Instance Attribute Summary

Attributes inherited from Core

#anchor, #id, #items, #ol_count

Instance Method Summary collapse

Methods inherited from Core

#to_adoc

Methods inherited from Base

#children_accessors, children_accessors, declare_children, #simplify_block_content, visit, #visit

Constructor Details

#initialize(items, options = {}) ⇒ Ordered

Returns a new instance of Ordered.



5
6
7
# File 'lib/coradoc/element/list/ordered.rb', line 5

def initialize(items, options = {})
  super(items, options)
end

Instance Method Details

#prefixObject



9
10
11
# File 'lib/coradoc/element/list/ordered.rb', line 9

def prefix
  "." * [@ol_count, 1].max
end