Class: Coradoc::Html::Drop::ListBlockDrop
- Defined in:
- lib/coradoc/html/drop/list_block_drop.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#id, #initialize, #template_type, #title, #to_liquid
Constructor Details
This class inherits a constructor from Coradoc::Html::Drop::Base
Instance Method Details
#html_tag ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/coradoc/html/drop/list_block_drop.rb', line 7 def html_tag case @model.marker_type when 'ordered' then 'ol' when 'definition' then 'dl' else 'ul' end end |
#items ⇒ Object
15 16 17 |
# File 'lib/coradoc/html/drop/list_block_drop.rb', line 15 def items children_to_liquid(@model.items) end |