Class: Coradoc::Html::Drop::BibliographyEntryDrop
- Inherits:
-
Base
- Object
- Liquid::Drop
- Base
- Coradoc::Html::Drop::BibliographyEntryDrop
show all
- Defined in:
- lib/coradoc/html/drop/bibliography_entry_drop.rb
Instance Attribute Summary
Attributes inherited from Base
#model
Instance Method Summary
collapse
Methods inherited from Base
#id, #initialize, #template_type, #title, #to_liquid
Instance Method Details
#anchor_name ⇒ Object
7
8
9
10
|
# File 'lib/coradoc/html/drop/bibliography_entry_drop.rb', line 7
def anchor_name
n = @model.anchor_name
n && !n.to_s.empty? ? n : nil
end
|
#document_id ⇒ Object
12
13
14
|
# File 'lib/coradoc/html/drop/bibliography_entry_drop.rb', line 12
def document_id
optional_text(@model.document_id)
end
|
#ref_text ⇒ Object
16
17
18
|
# File 'lib/coradoc/html/drop/bibliography_entry_drop.rb', line 16
def ref_text
optional_text(@model.ref_text)
end
|