Class: HamdownCore::Ast::HamlComment
- Inherits:
-
Struct
- Object
- Struct
- HamdownCore::Ast::HamlComment
- Includes:
- HasChildren
- Defined in:
- lib/hamdown_core/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
129 130 131 |
# File 'lib/hamdown_core/ast.rb', line 129 def children @children end |
#filename ⇒ Object
Returns the value of attribute filename
129 130 131 |
# File 'lib/hamdown_core/ast.rb', line 129 def filename @filename end |
#lineno ⇒ Object
Returns the value of attribute lineno
129 130 131 |
# File 'lib/hamdown_core/ast.rb', line 129 def lineno @lineno end |
Instance Method Details
#to_h ⇒ Object
132 133 134 |
# File 'lib/hamdown_core/ast.rb', line 132 def to_h super.merge(type: 'haml_comment') end |