Class: HamdownCore::Ast::Root

Inherits:
Struct
  • Object
show all
Includes:
HasChildren
Defined in:
lib/hamdown_core/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasChildren

#<<, #initialize

Instance Attribute Details

#childrenObject

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



20
21
22
# File 'lib/hamdown_core/ast.rb', line 20

def children
  @children
end

Instance Method Details

#to_hObject



23
24
25
# File 'lib/hamdown_core/ast.rb', line 23

def to_h
  super.merge(type: 'root')
end