Class: Coradoc::Html::Drop::FootnoteDrop

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/html/drop/footnote_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

#contentObject



11
12
13
# File 'lib/coradoc/html/drop/footnote_drop.rb', line 11

def content
  Escape.escape_html(extract_text(@model.content || @model.inline_content))
end

#footnote_idObject



7
8
9
# File 'lib/coradoc/html/drop/footnote_drop.rb', line 7

def footnote_id
  @model.id || ''
end

#inline?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/coradoc/html/drop/footnote_drop.rb', line 15

def inline?
  footnote_id.empty?
end