Class: Practical::Views::TiptapDocumentComponent::OrderedList

Inherits:
Node
  • Object
show all
Defined in:
app/components/practical/views/tiptap_document_component.rb

Instance Attribute Summary

Attributes inherited from Node

#node_content

Instance Method Summary collapse

Methods inherited from Node

#initialize, #render_node_contents

Methods included from NodeRendering

#render_node

Methods included from ElementHelper

#grab, #mix

Constructor Details

This class inherits a constructor from Practical::Views::TiptapDocumentComponent::Node

Instance Method Details

#callObject



183
184
185
186
187
# File 'app/components/practical/views/tiptap_document_component.rb', line 183

def call
  tag.ol(start: node_content.dig(:attrs, :start)) {
    render_node_contents
  }
end