Class: Epubber::Models::Endnotes
- Defined in:
- lib/epubber/models/endnotes.rb
Instance Method Summary collapse
- #content(content) ⇒ Object
- #contextify ⇒ Object
-
#initialize ⇒ Endnotes
constructor
A new instance of Endnotes.
Methods inherited from Model
Constructor Details
#initialize ⇒ Endnotes
Returns a new instance of Endnotes.
6 7 8 |
# File 'lib/epubber/models/endnotes.rb', line 6 def initialize @content = '<p>Not specified</p>' end |
Instance Method Details
#content(content) ⇒ Object
10 11 12 |
# File 'lib/epubber/models/endnotes.rb', line 10 def content(content) @content = clean_html(content) end |
#contextify ⇒ Object
14 15 16 |
# File 'lib/epubber/models/endnotes.rb', line 14 def contextify { 'content' => @content } end |