Class: ProsemirrorToHtml::Nodes::Node

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Node

Returns a new instance of Node.


12
13
14
# File 'lib/prosemirror_to_html/nodes/node.rb', line 12

def initialize(data)
  @node = data
end

Instance Attribute Details

#typeObject


8
9
10
# File 'lib/prosemirror_to_html/nodes/node.rb', line 8

def type
  @type || 'node'
end

#wrapper=(value) ⇒ Object (writeonly)

Sets the attribute wrapper

Parameters:

  • value

    the value to set the attribute wrapper to.


5
6
7
# File 'lib/prosemirror_to_html/nodes/node.rb', line 5

def wrapper=(value)
  @wrapper = value
end

Instance Method Details

#matchingObject


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

def matching
  false
end

#tagObject


20
21
22
# File 'lib/prosemirror_to_html/nodes/node.rb', line 20

def tag
  nil
end

#textObject


24
25
26
# File 'lib/prosemirror_to_html/nodes/node.rb', line 24

def text
  nil
end