Sha256: 244a85be9192b5d41d7be3bc743c0f23c8709ea5ddb775065cd729fa49fd795f

Contents?: true

Size: 367 Bytes

Versions: 6

Compression:

Stored size: 367 Bytes

Contents

require 'epubber/models/endnotes'

module Epubber::Models::Concerns
  module HasEndnotes
    def endnotes
      @endnotes ||= nil
      return @endnotes unless block_given?
      @endnotes = Epubber::Models::Endnotes.new
      yield @endnotes
    end

    def contextified_endnotes
      return nil if endnotes.nil?
      return endnotes.contextify
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
epubber-0.1.5 lib/epubber/models/concerns/has_endnotes.rb
epubber-0.1.4 lib/epubber/models/concerns/has_endnotes.rb
epubber-0.1.3 lib/epubber/models/concerns/has_endnotes.rb
epubber-0.1.2 lib/epubber/models/concerns/has_endnotes.rb
epubber-0.1.1 lib/epubber/models/concerns/has_endnotes.rb
epubber-0.1.0 lib/epubber/models/concerns/has_endnotes.rb