Class: Practical::Views::TiptapDocumentComponent::CodeBlock
- Inherits:
-
Node
- Object
- ViewComponent::Base
- BaseComponent
- Node
- Practical::Views::TiptapDocumentComponent::CodeBlock
- Defined in:
- app/components/practical/views/tiptap_document_component.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from Node
#initialize, #render_node_contents
Methods included from NodeRendering
Methods included from ElementHelper
Constructor Details
This class inherits a constructor from Practical::Views::TiptapDocumentComponent::Node
Instance Method Details
#call ⇒ Object
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 |