Class: HamlParser::Ast::Empty
- Inherits:
-
Struct
- Object
- Struct
- HamlParser::Ast::Empty
- Defined in:
- lib/haml_parser/ast.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#lineno ⇒ Object
Returns the value of attribute lineno.
Instance Method Summary collapse
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename
151 152 153 |
# File 'lib/haml_parser/ast.rb', line 151 def filename @filename end |
#lineno ⇒ Object
Returns the value of attribute lineno
151 152 153 |
# File 'lib/haml_parser/ast.rb', line 151 def lineno @lineno end |
Instance Method Details
#to_h ⇒ Object
152 153 154 |
# File 'lib/haml_parser/ast.rb', line 152 def to_h super.merge(type: 'empty') end |