Class: Coradoc::AsciiDoc::Model::BibliographyEntry
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Base
- Coradoc::AsciiDoc::Model::BibliographyEntry
- Defined in:
- lib/coradoc/asciidoc/model/bibliography_entry.rb
Overview
Individual bibliography entry for AsciiDoc documents.
Bibliography entries represent single references within a bibliography, with anchor names for citation linking.
Instance Attribute Summary collapse
-
#anchor_name ⇒ String?
readonly
The anchor name for citing this entry.
-
#document_id ⇒ String?
readonly
The document identifier.
-
#line_break ⇒ String
readonly
Line break character (default: “”).
-
#ref_text ⇒ String?
readonly
The reference text/citation.
Attributes inherited from Base
Method Summary
Methods inherited from Base
#block_level?, #inline?, #serialize_content, #simplify_block_content, #to_adoc, #to_h, visit, #visit
Instance Attribute Details
#anchor_name ⇒ String? (readonly)
Returns The anchor name for citing this entry.
30 31 32 33 34 35 |
# File 'lib/coradoc/asciidoc/model/bibliography_entry.rb', line 30 class BibliographyEntry < Base attribute :anchor_name, :string attribute :document_id, :string attribute :ref_text, :string attribute :line_break, :string, default: -> { '' } end |
#document_id ⇒ String? (readonly)
Returns The document identifier.
30 31 32 33 34 35 |
# File 'lib/coradoc/asciidoc/model/bibliography_entry.rb', line 30 class BibliographyEntry < Base attribute :anchor_name, :string attribute :document_id, :string attribute :ref_text, :string attribute :line_break, :string, default: -> { '' } end |
#line_break ⇒ String (readonly)
Returns Line break character (default: “”).
30 31 32 33 34 35 |
# File 'lib/coradoc/asciidoc/model/bibliography_entry.rb', line 30 class BibliographyEntry < Base attribute :anchor_name, :string attribute :document_id, :string attribute :ref_text, :string attribute :line_break, :string, default: -> { '' } end |
#ref_text ⇒ String? (readonly)
Returns The reference text/citation.
30 31 32 33 34 35 |
# File 'lib/coradoc/asciidoc/model/bibliography_entry.rb', line 30 class BibliographyEntry < Base attribute :anchor_name, :string attribute :document_id, :string attribute :ref_text, :string attribute :line_break, :string, default: -> { '' } end |