Class: Coradoc::Element::List::Ordered
- Defined in:
- lib/coradoc/element/list/ordered.rb
Instance Attribute Summary
Attributes inherited from Core
#anchor, #id, #items, #ol_count
Instance Method Summary collapse
-
#initialize(items, options = {}) ⇒ Ordered
constructor
A new instance of Ordered.
- #prefix ⇒ Object
Methods inherited from Core
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, = {}) super(items, ) end |
Instance Method Details
#prefix ⇒ Object
9 10 11 |
# File 'lib/coradoc/element/list/ordered.rb', line 9 def prefix "." * [@ol_count, 1].max end |