Module: Epubber::Models::Concerns::HasEndnotes
- Included in:
- Book
- Defined in:
- lib/epubber/models/concerns/has_endnotes.rb
Instance Method Summary collapse
Instance Method Details
#contextified_endnotes ⇒ Object
12 13 14 15 |
# File 'lib/epubber/models/concerns/has_endnotes.rb', line 12 def contextified_endnotes return nil if endnotes.nil? return endnotes.contextify end |
#endnotes {|@endnotes| ... } ⇒ Object
5 6 7 8 9 10 |
# File 'lib/epubber/models/concerns/has_endnotes.rb', line 5 def endnotes @endnotes ||= nil return @endnotes unless block_given? @endnotes = Epubber::Models::Endnotes.new yield @endnotes end |