Class: Storyblok::Richtext::Nodes::Node
- Inherits:
-
Object
- Object
- Storyblok::Richtext::Nodes::Node
show all
- Defined in:
- lib/storyblok/richtext/html_renderer/nodes/node.rb
Direct Known Subclasses
Blockquote, Blok, BulletList, CodeBlock, Emoji, HardBreak, Heading, HorizontalRule, Image, ListItem, OrderedList, Paragraph, Text
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(data) ⇒ Node
Returns a new instance of Node.
12
13
14
|
# File 'lib/storyblok/richtext/html_renderer/nodes/node.rb', line 12
def initialize(data)
@node = data
end
|
Instance Attribute Details
#type ⇒ Object
8
9
10
|
# File 'lib/storyblok/richtext/html_renderer/nodes/node.rb', line 8
def type
@type || 'node'
end
|
#wrapper=(value) ⇒ Object
Sets the attribute wrapper
5
6
7
|
# File 'lib/storyblok/richtext/html_renderer/nodes/node.rb', line 5
def wrapper=(value)
@wrapper = value
end
|
Instance Method Details
#html ⇒ Object
32
33
34
|
# File 'lib/storyblok/richtext/html_renderer/nodes/node.rb', line 32
def html
nil
end
|
#matching ⇒ Object
16
17
18
|
# File 'lib/storyblok/richtext/html_renderer/nodes/node.rb', line 16
def matching
false
end
|
#single_tag ⇒ Object
20
21
22
|
# File 'lib/storyblok/richtext/html_renderer/nodes/node.rb', line 20
def single_tag
nil
end
|
#tag ⇒ Object
24
25
26
|
# File 'lib/storyblok/richtext/html_renderer/nodes/node.rb', line 24
def tag
nil
end
|
#text ⇒ Object
28
29
30
|
# File 'lib/storyblok/richtext/html_renderer/nodes/node.rb', line 28
def text
nil
end
|