Class: ProsemirrorToHtml::Nodes::Image

Inherits:
Node
  • Object
show all
Defined in:
lib/prosemirror_to_html/nodes/image.rb

Instance Method Summary collapse

Methods inherited from Node

#initialize, #matching, #text

Constructor Details

This class inherits a constructor from ProsemirrorToHtml::Nodes::Node

Instance Method Details

#self_closingObject



16
17
18
# File 'lib/prosemirror_to_html/nodes/image.rb', line 16

def self_closing
  true
end

#tagObject



7
8
9
10
11
12
13
14
# File 'lib/prosemirror_to_html/nodes/image.rb', line 7

def tag
  [
    {
      tag: self.class.tag_name,
      attrs: @node.attrs
    }
  ]
end