Sha256: c5fe892ca7471eb3a89ece307f966e9a01345a376665ac246f298f3441d01811

Contents?: true

Size: 383 Bytes

Versions: 1

Compression:

Stored size: 383 Bytes

Contents

require 'epubber/models/concerns/has_endnotes'

# Represents a book's introduction
module Epubber::Models
  class Introduction
    include Epubber::Models::Concerns::HasHTML

    def initialize
      @content = '<p>Not specified</p>'
    end

    def content(content)
      @content = clean_html(content)
    end

    def contextify
      { 'content' => @content }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
epubber-0.1.1 lib/epubber/models/introduction.rb