Doc::Node type
Direct parent types
- Doc::Container
Any document part that can contain other elements. Direct subtypes: 2
Methods
- init(n:Doc::Node, name:Str, children:Arr=null, **attrs:Hash) Source: autoload/Doc.ngs:50
Initialize document node Example
Doc::Node('span', class='inline-param') with [ Doc::Text(param.name) Doc::Text(':') Doc::Text(param.type.name) ... ]
- inspect(n:Doc::Node, levels:Any=2) Source: autoload/Doc.ngs:158
Inspect document node Returns
Arr of Str
- Doc::name(n:Doc::Node) Source: autoload/Doc.ngs:77
Undocumented
- Doc::Html(n:Doc::Node) Source: autoload/Doc.ngs:118
Undocumented
- Doc::HtmlRoot(n:Doc::Node) Source: autoload/Doc.ngs:139
Create HTML document from the give top level document node Returns
Str