Class: Markly::Renderer::Heading

Inherits:
Struct
  • Object
show all
Defined in:
lib/markly/renderer/headings.rb

Overview

Represents a heading extracted from a document.

The structure contains the original node, its level, its plain-text text, and its unique anchor.

Instance Attribute Summary collapse

Instance Attribute Details

#anchorObject

Returns the value of attribute anchor

Returns:

  • (Object)

    the current value of anchor



84
85
86
# File 'lib/markly/renderer/headings.rb', line 84

def anchor
  @anchor
end

#levelObject

Returns the value of attribute level

Returns:

  • (Object)

    the current value of level



84
85
86
# File 'lib/markly/renderer/headings.rb', line 84

def level
  @level
end

#nodeObject

Returns the value of attribute node

Returns:

  • (Object)

    the current value of node



84
85
86
# File 'lib/markly/renderer/headings.rb', line 84

def node
  @node
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



84
85
86
# File 'lib/markly/renderer/headings.rb', line 84

def text
  @text
end