Class: Coradoc::Html::Drop::BibliographyEntryDrop

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from Coradoc::Html::Drop::Base

Instance Method Details

#anchor_nameObject



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_idObject



12
13
14
# File 'lib/coradoc/html/drop/bibliography_entry_drop.rb', line 12

def document_id
  optional_text(@model.document_id)
end

#ref_textObject



16
17
18
# File 'lib/coradoc/html/drop/bibliography_entry_drop.rb', line 16

def ref_text
  optional_text(@model.ref_text)
end