Class: Metanorma::Html::Drops::FootnoteDrop

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
lib/metanorma/html/drops/footnote_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(entry, content_html) ⇒ FootnoteDrop

Returns a new instance of FootnoteDrop.



7
8
9
10
# File 'lib/metanorma/html/drops/footnote_drop.rb', line 7

def initialize(entry, content_html)
  @entry = entry
  @content_html = content_html
end

Instance Method Details

#content_htmlObject



20
21
22
# File 'lib/metanorma/html/drops/footnote_drop.rb', line 20

def content_html
  @content_html
end

#numberObject



12
13
14
# File 'lib/metanorma/html/drops/footnote_drop.rb', line 12

def number
  @entry.number
end

#referenceObject



16
17
18
# File 'lib/metanorma/html/drops/footnote_drop.rb', line 16

def reference
  @entry.reference
end