Class: HamlParser::Ast::HamlComment
- Inherits:
-
Struct
- Object
- Struct
- HamlParser::Ast::HamlComment
- Includes:
- HasChildren
- Defined in:
- lib/haml_parser/ast.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#lineno ⇒ Object
Returns the value of attribute lineno.
Instance Method Summary collapse
Methods included from HasChildren
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
119 120 121 |
# File 'lib/haml_parser/ast.rb', line 119 def children @children end |
#filename ⇒ Object
Returns the value of attribute filename
119 120 121 |
# File 'lib/haml_parser/ast.rb', line 119 def filename @filename end |
#lineno ⇒ Object
Returns the value of attribute lineno
119 120 121 |
# File 'lib/haml_parser/ast.rb', line 119 def lineno @lineno end |
Instance Method Details
#to_h ⇒ Object
122 123 124 |
# File 'lib/haml_parser/ast.rb', line 122 def to_h super.merge(type: 'haml_comment') end |