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

Returns:

  • (Object)

    the current value of filename



242
243
244
# File 'lib/hamdown_core/ast.rb', line 242

def filename
  @filename
end

#linenoObject

Returns the value of attribute lineno

Returns:

  • (Object)

    the current value of lineno



242
243
244
# File 'lib/hamdown_core/ast.rb', line 242

def lineno
  @lineno
end

Instance Method Details

#to_hObject



243
244
245
# File 'lib/hamdown_core/ast.rb', line 243

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