Class: Coradoc::CoreModel::Bibliography
- Defined in:
- lib/coradoc/core_model/bibliography.rb
Overview
Bibliography section in a document.
Bibliography sections contain lists of references cited in the document. They are typically marked with [bibliography] attribute in AsciiDoc.
Instance Attribute Summary collapse
-
#entries ⇒ Array<Coradoc::CoreModel::BibliographyEntry>
readonly
Bibliography entries.
-
#id ⇒ String?
readonly
Optional identifier for the bibliography.
-
#level ⇒ Integer?
readonly
Section level.
-
#title ⇒ String?
readonly
Bibliography section title.
Attributes inherited from Base
#element_attributes, #metadata_entries
Method Summary
Methods inherited from Base
#accept, #attr, #metadata, #semantically_equivalent?, #set_attr, #set_metadata
Instance Attribute Details
#entries ⇒ Array<Coradoc::CoreModel::BibliographyEntry> (readonly)
Returns Bibliography entries.
35 36 37 38 39 40 |
# File 'lib/coradoc/core_model/bibliography.rb', line 35 class Bibliography < Base attribute :id, :string attribute :title, :string attribute :level, :integer attribute :entries, Coradoc::CoreModel::BibliographyEntry, collection: true end |
#id ⇒ String? (readonly)
Returns Optional identifier for the bibliography.
35 36 37 38 39 40 |
# File 'lib/coradoc/core_model/bibliography.rb', line 35 class Bibliography < Base attribute :id, :string attribute :title, :string attribute :level, :integer attribute :entries, Coradoc::CoreModel::BibliographyEntry, collection: true end |
#level ⇒ Integer? (readonly)
Returns Section level.
35 36 37 38 39 40 |
# File 'lib/coradoc/core_model/bibliography.rb', line 35 class Bibliography < Base attribute :id, :string attribute :title, :string attribute :level, :integer attribute :entries, Coradoc::CoreModel::BibliographyEntry, collection: true end |
#title ⇒ String? (readonly)
Returns Bibliography section title.
35 36 37 38 39 40 |
# File 'lib/coradoc/core_model/bibliography.rb', line 35 class Bibliography < Base attribute :id, :string attribute :title, :string attribute :level, :integer attribute :entries, Coradoc::CoreModel::BibliographyEntry, collection: true end |