Class: Coradoc::Html::Drop::ListItemDrop

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/html/drop/list_item_drop.rb

Instance Attribute Summary

Attributes inherited from Base

#model

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

#contentObject



7
8
9
# File 'lib/coradoc/html/drop/list_item_drop.rb', line 7

def content
  content_to_liquid(@model.content)
end

#nested_listObject



11
12
13
14
# File 'lib/coradoc/html/drop/list_item_drop.rb', line 11

def nested_list
  child = @model.nested_list
  DropFactory.create(child) if child
end