Class: Dato::List
- Defined in:
- app/components/dato/list.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
- #generated_tag ⇒ Object
-
#initialize(node, root) ⇒ List
constructor
A new instance of List.
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/list.rb', line 8 def generated_tag (@node.style == "bulleted") ? "ul" : "ol" end |