Class: Storyblok::Richtext::Nodes::ListItem

Inherits:
Node
  • Object
show all
Defined in:
lib/storyblok/richtext/html_renderer/nodes/list_item.rb

Instance Attribute Summary

Attributes inherited from Node

#type, #wrapper

Instance Method Summary collapse

Methods inherited from Node

#html, #initialize, #single_tag, #text

Constructor Details

This class inherits a constructor from Storyblok::Richtext::Nodes::Node

Instance Method Details

#matchingObject



4
5
6
# File 'lib/storyblok/richtext/html_renderer/nodes/list_item.rb', line 4

def matching
  @node['type'] === 'list_item'
end

#tagObject



8
9
10
# File 'lib/storyblok/richtext/html_renderer/nodes/list_item.rb', line 8

def tag
  'li'
end