Class: HamlParser::Ast::Root

Inherits:
Struct
  • Object
show all
Includes:
HasChildren
Defined in:
lib/haml_parser/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



18
19
20
# File 'lib/haml_parser/ast.rb', line 18

def children
  @children
end

Instance Method Details

#to_hObject



21
22
23
# File 'lib/haml_parser/ast.rb', line 21

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