Class: Dato::Heading
- Defined in:
- app/components/dato/heading.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
- #generated_tag ⇒ Object
-
#initialize(node, root) ⇒ Heading
constructor
A new instance of Heading.
Methods inherited from Node
#blocks, #debug_node, #overrides, #render_node
Constructor Details
Instance Method Details
#generated_tag ⇒ Object
8 9 10 |
# File 'app/components/dato/heading.rb', line 8 def generated_tag "h#{@node.level}" end |