Class: Markbridge::AST::Document
- Defined in:
- lib/markbridge/ast/document.rb
Overview
Represents the root document node of the AST. This is the top-level container that holds all other elements.
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(children = []) ⇒ Document
constructor
Create a new document node.
Methods inherited from Element
Constructor Details
#initialize(children = []) ⇒ Document
Create a new document node.
21 22 23 24 |
# File 'lib/markbridge/ast/document.rb', line 21 def initialize(children = []) super() Array(children).each { |c| self << c } end |