Class: HamlParser::Ast::Doctype

Inherits:
Struct
  • Object
show all
Defined in:
lib/haml_parser/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#doctypeObject

Returns the value of attribute doctype

Returns:

  • (Object)

    the current value of doctype



26
27
28
# File 'lib/haml_parser/ast.rb', line 26

def doctype
  @doctype
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



26
27
28
# File 'lib/haml_parser/ast.rb', line 26

def filename
  @filename
end

#linenoObject

Returns the value of attribute lineno

Returns:

  • (Object)

    the current value of lineno



26
27
28
# File 'lib/haml_parser/ast.rb', line 26

def lineno
  @lineno
end

Instance Method Details

#to_hObject



27
28
29
# File 'lib/haml_parser/ast.rb', line 27

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