Class: Anydoc::Note

Inherits:
Data
  • Object
show all
Defined in:
lib/anydoc/document.rb,
sig/anydoc.rbs

Overview

A footnote or endnote body, referenced from text by a :note_ref inline.

Instance Attribute Summary collapse

Instance Attribute Details

#blocksArray<Block> (readonly)

Returns the note's own content.

Returns:

  • (Array<Block>)

    the note's own content.



205
206
# File 'lib/anydoc/document.rb', line 205

class Note < Data.define(:id, :kind, :blocks)
end

#idString (readonly)

Returns the id the referencing inline carries.

Returns:

  • (String)

    the id the referencing inline carries.



205
206
# File 'lib/anydoc/document.rb', line 205

class Note < Data.define(:id, :kind, :blocks)
end

#kindSymbol (readonly)

:footnote | :endnote

Returns:

  • (Symbol)


205
206
# File 'lib/anydoc/document.rb', line 205

class Note < Data.define(:id, :kind, :blocks)
end