Class: Dato::Paragraph

Inherits:
DastNode show all
Defined in:
app/components/dato/paragraph.rb

Instance Attribute Summary

Attributes inherited from Node

#root

Instance Method Summary collapse

Methods inherited from Node

#blocks, #debug_node, #overrides, #render_node

Constructor Details

#initialize(node, root) ⇒ Paragraph

Returns a new instance of Paragraph.



4
5
6
# File 'app/components/dato/paragraph.rb', line 4

def initialize(node, root)
  super(node, "paragraph", root)
end

Instance Method Details

#generated_tagObject



8
9
10
# File 'app/components/dato/paragraph.rb', line 8

def generated_tag
  "p"
end