Class: Dato::List

Inherits:
DastNode show all
Defined in:
app/components/dato/list.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) ⇒ List

Returns a new instance of List.



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

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

Instance Method Details

#generated_tagObject



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

def generated_tag
  (@node.style == "bulleted") ? "ul" : "ol"
end