Class: ProsemirrorToHtml::Nodes::Node
- Inherits:
-
Object
- Object
- ProsemirrorToHtml::Nodes::Node
show all
- Defined in:
- lib/prosemirror_to_html/nodes/node.rb
Direct Known Subclasses
BulletList, CodeBlock, CodeBlockWrapper, HardBreak, Heading, Image, ListItem, OrderedList, Paragraph, Text, User
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
#type ⇒ Object
8
9
10
|
# File 'lib/prosemirror_to_html/nodes/node.rb', line 8
def type
@type || 'node'
end
|
#wrapper=(value) ⇒ Object
Sets the attribute wrapper
5
6
7
|
# File 'lib/prosemirror_to_html/nodes/node.rb', line 5
def wrapper=(value)
@wrapper = value
end
|
Instance Method Details
#matching ⇒ Object
16
17
18
|
# File 'lib/prosemirror_to_html/nodes/node.rb', line 16
def matching
false
end
|
#tag ⇒ Object
20
21
22
|
# File 'lib/prosemirror_to_html/nodes/node.rb', line 20
def tag
nil
end
|
#text ⇒ Object
24
25
26
|
# File 'lib/prosemirror_to_html/nodes/node.rb', line 24
def text
nil
end
|