Class: Markly::Renderer::Heading
- Inherits:
-
Struct
- Object
- Struct
- Markly::Renderer::Heading
- 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
-
#anchor ⇒ Object
Returns the value of attribute anchor.
-
#level ⇒ Object
Returns the value of attribute level.
-
#node ⇒ Object
Returns the value of attribute node.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Attribute Details
#anchor ⇒ Object
Returns the value of attribute anchor
84 85 86 |
# File 'lib/markly/renderer/headings.rb', line 84 def anchor @anchor end |
#level ⇒ Object
Returns the value of attribute level
84 85 86 |
# File 'lib/markly/renderer/headings.rb', line 84 def level @level end |
#node ⇒ Object
Returns the value of attribute node
84 85 86 |
# File 'lib/markly/renderer/headings.rb', line 84 def node @node end |
#text ⇒ Object
Returns the value of attribute text
84 85 86 |
# File 'lib/markly/renderer/headings.rb', line 84 def text @text end |