Class: HamdownCore::Ast::Empty
- Inherits:
-
Struct
- Object
- Struct
- HamdownCore::Ast::Empty
- Defined in:
- lib/hamdown_core/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
242 243 244 |
# File 'lib/hamdown_core/ast.rb', line 242 def filename @filename end |
#lineno ⇒ Object
Returns the value of attribute lineno
242 243 244 |
# File 'lib/hamdown_core/ast.rb', line 242 def lineno @lineno end |
Instance Method Details
#to_h ⇒ Object
243 244 245 |
# File 'lib/hamdown_core/ast.rb', line 243 def to_h super.merge(type: 'empty') end |