Class: HamlParser::Ast::HamlComment

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



119
120
121
# File 'lib/haml_parser/ast.rb', line 119

def children
  @children
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



119
120
121
# File 'lib/haml_parser/ast.rb', line 119

def filename
  @filename
end

#linenoObject

Returns the value of attribute lineno

Returns:

  • (Object)

    the current value of lineno



119
120
121
# File 'lib/haml_parser/ast.rb', line 119

def lineno
  @lineno
end

Instance Method Details

#to_hObject



122
123
124
# File 'lib/haml_parser/ast.rb', line 122

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