Class: ProsemirrorToHtml::Nodes::ListItem
- Defined in:
- lib/prosemirror_to_html/nodes/list_item.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#matching ⇒ Object
def initialize(dom_node) super(dom_node) @wrapper = { type: ‘paragraph’ } end.
- #tag ⇒ Object
Methods inherited from Node
Constructor Details
This class inherits a constructor from ProsemirrorToHtml::Nodes::Node
Instance Method Details
#matching ⇒ Object
def initialize(dom_node)
super(dom_node)
@wrapper = { type: 'paragraph' }
end
9 10 11 |
# File 'lib/prosemirror_to_html/nodes/list_item.rb', line 9 def matching @node.type === 'list_item' end |
#tag ⇒ Object
13 14 15 |
# File 'lib/prosemirror_to_html/nodes/list_item.rb', line 13 def tag 'li' end |