Class: HamdownCore::Ast::Empty

Inherits:
Struct
  • Object
show all
Defined in:
lib/hamdown_core/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filenameObject

Returns the value of attribute filename



173
174
175
# File 'lib/hamdown_core/ast.rb', line 173

def filename
  @filename
end

#linenoObject

Returns the value of attribute lineno



173
174
175
# File 'lib/hamdown_core/ast.rb', line 173

def lineno
  @lineno
end

Instance Method Details

#to_hObject



174
175
176
# File 'lib/hamdown_core/ast.rb', line 174

def to_h
  super.merge(type: 'empty')
end