Class: HamdownCore::Ast::Root
- Inherits:
-
Struct
- Object
- Struct
- HamdownCore::Ast::Root
- Includes:
- HasChildren
- Defined in:
- lib/hamdown_core/ast.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
Instance Method Summary collapse
Methods included from HasChildren
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
20 21 22 |
# File 'lib/hamdown_core/ast.rb', line 20 def children @children end |
Instance Method Details
#to_h ⇒ Object
23 24 25 |
# File 'lib/hamdown_core/ast.rb', line 23 def to_h super.merge(type: 'root') end |