Class: Coradoc::AsciiDoc::Model::Bibliography
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Base
- Coradoc::AsciiDoc::Model::Bibliography
- Includes:
- Anchorable
- Defined in:
- lib/coradoc/asciidoc/model/bibliography.rb
Overview
Bibliography block element for AsciiDoc documents.
Bibliographies contain lists of bibliography entries (references) with support for various citation styles.
Instance Attribute Summary collapse
-
#entries ⇒ Array<Coradoc::AsciiDoc::Model::BibliographyEntry>
readonly
Bibliography entry items.
-
#id ⇒ String?
readonly
Optional identifier for the bibliography.
-
#title ⇒ String?
readonly
Optional bibliography title.
Method Summary
Methods included from Anchorable
#default_anchor, #gen_anchor, included, #initialize
Methods inherited from Base
#block_level?, #inline?, #serialize_content, #simplify_block_content, #to_adoc, #to_h, visit, #visit
Instance Attribute Details
#entries ⇒ Array<Coradoc::AsciiDoc::Model::BibliographyEntry> (readonly)
Returns Bibliography entry items.
28 29 30 31 32 33 34 |
# File 'lib/coradoc/asciidoc/model/bibliography.rb', line 28 class Bibliography < Base include Coradoc::AsciiDoc::Model::Anchorable attribute :id, :string attribute :title, :string attribute :entries, Coradoc::AsciiDoc::Model::BibliographyEntry, collection: true end |
#id ⇒ String? (readonly)
Returns Optional identifier for the bibliography.
28 29 30 31 32 33 34 |
# File 'lib/coradoc/asciidoc/model/bibliography.rb', line 28 class Bibliography < Base include Coradoc::AsciiDoc::Model::Anchorable attribute :id, :string attribute :title, :string attribute :entries, Coradoc::AsciiDoc::Model::BibliographyEntry, collection: true end |
#title ⇒ String? (readonly)
Returns Optional bibliography title.
28 29 30 31 32 33 34 |
# File 'lib/coradoc/asciidoc/model/bibliography.rb', line 28 class Bibliography < Base include Coradoc::AsciiDoc::Model::Anchorable attribute :id, :string attribute :title, :string attribute :entries, Coradoc::AsciiDoc::Model::BibliographyEntry, collection: true end |