Class: Storyblok::Richtext::Nodes::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/storyblok/richtext/html_renderer/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/storyblok/richtext/html_renderer/nodes/node.rb', line 12

def initialize(data)
  @node = data
end

Instance Attribute Details

#typeObject



8
9
10
# File 'lib/storyblok/richtext/html_renderer/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/storyblok/richtext/html_renderer/nodes/node.rb', line 5

def wrapper=(value)
  @wrapper = value
end

Instance Method Details

#htmlObject



32
33
34
# File 'lib/storyblok/richtext/html_renderer/nodes/node.rb', line 32

def html
  nil
end

#matchingObject



16
17
18
# File 'lib/storyblok/richtext/html_renderer/nodes/node.rb', line 16

def matching
  false
end

#single_tagObject



20
21
22
# File 'lib/storyblok/richtext/html_renderer/nodes/node.rb', line 20

def single_tag
  nil
end

#tagObject



24
25
26
# File 'lib/storyblok/richtext/html_renderer/nodes/node.rb', line 24

def tag
  nil
end

#textObject



28
29
30
# File 'lib/storyblok/richtext/html_renderer/nodes/node.rb', line 28

def text
  nil
end