Class: Practical::Views::TiptapDocumentComponent::CodeBlock

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



159
160
161
162
163
# File 'app/components/practical/views/tiptap_document_component.rb', line 159

def call
  tag.pre {
    tag.code { render_node_contents }
  }
end