class

Luce::Element

Inherits Luce::Node < Reference < Object

A named tag that can contain other nodes.

Constructors

empty(tag : String) : Element

Initializes an empty, self-closing tag element.

new(tag : String, children : Array(Node) | Nil)

Initializes a tag Element with children.

text(tag : String, text : String) : Element

Initializes a tag Element with a single Text child.

with_tag(tag : String) : Element

Initializes a tag Element with no children.

Instance methods

accept(visitor : NodeVisitor) : Nil
attributes
children
empty?

Whether this element is self-closing.

footnote_label
footnote_label=(footnote_label : String | Nil)
generated_id
generated_id=(generated_id : String | Nil)
tag
text_content