Class: HamdownCore::Ast::HtmlList

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

Overview

html

Direct Known Subclasses

HtmlOlList, HtmlUlList

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasChildren

#<<, #initialize

Instance Attribute Details

#childrenObject

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



166
167
168
# File 'lib/hamdown_core/ast.rb', line 166

def children
  @children
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



166
167
168
# File 'lib/hamdown_core/ast.rb', line 166

def filename
  @filename
end

#linenoObject

Returns the value of attribute lineno

Returns:

  • (Object)

    the current value of lineno



166
167
168
# File 'lib/hamdown_core/ast.rb', line 166

def lineno
  @lineno
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



166
167
168
# File 'lib/hamdown_core/ast.rb', line 166

def text
  @text
end

Instance Method Details

#to_hObject



169
170
171
# File 'lib/hamdown_core/ast.rb', line 169

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