Class: HtmlToProsemirror::Marks::Mark

Inherits:
Object
  • Object
show all
Defined in:
lib/html_to_prosemirror/marks/mark.rb

Direct Known Subclasses

Bold, Code, Italic, Link

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dom_node) ⇒ Mark

Returns a new instance of Mark.



10
11
12
# File 'lib/html_to_prosemirror/marks/mark.rb', line 10

def initialize(dom_node)
  @node = dom_node
end

Instance Attribute Details

#typeObject



6
7
8
# File 'lib/html_to_prosemirror/marks/mark.rb', line 6

def type
  @type || 'mark'
end

Instance Method Details

#dataObject



18
19
20
# File 'lib/html_to_prosemirror/marks/mark.rb', line 18

def data
  []
end

#matchingObject



14
15
16
# File 'lib/html_to_prosemirror/marks/mark.rb', line 14

def matching
  false
end