Class: HamlParser::Ast::Doctype
- Inherits:
-
Struct
- Object
- Struct
- HamlParser::Ast::Doctype
- Defined in:
- lib/haml_parser/ast.rb
Instance Attribute Summary collapse
-
#doctype ⇒ Object
Returns the value of attribute doctype.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#lineno ⇒ Object
Returns the value of attribute lineno.
Instance Method Summary collapse
Instance Attribute Details
#doctype ⇒ Object
Returns the value of attribute doctype
26 27 28 |
# File 'lib/haml_parser/ast.rb', line 26 def doctype @doctype end |
#filename ⇒ Object
Returns the value of attribute filename
26 27 28 |
# File 'lib/haml_parser/ast.rb', line 26 def filename @filename end |
#lineno ⇒ Object
Returns the value of attribute lineno
26 27 28 |
# File 'lib/haml_parser/ast.rb', line 26 def lineno @lineno end |
Instance Method Details
#to_h ⇒ Object
27 28 29 |
# File 'lib/haml_parser/ast.rb', line 27 def to_h super.merge(type: 'doctype') end |