Class: Epubber::Models::Introduction
- Inherits:
-
Object
- Object
- Epubber::Models::Introduction
- Includes:
- Concerns::HasHTML
- Defined in:
- lib/epubber/models/introduction.rb
Instance Method Summary collapse
- #content(content) ⇒ Object
- #contextify ⇒ Object
-
#initialize ⇒ Introduction
constructor
A new instance of Introduction.
Methods included from Concerns::HasHTML
Constructor Details
#initialize ⇒ Introduction
Returns a new instance of Introduction.
8 9 10 |
# File 'lib/epubber/models/introduction.rb', line 8 def initialize @content = '<p>Not specified</p>' end |
Instance Method Details
#content(content) ⇒ Object
12 13 14 |
# File 'lib/epubber/models/introduction.rb', line 12 def content(content) @content = clean_html(content) end |
#contextify ⇒ Object
16 17 18 |
# File 'lib/epubber/models/introduction.rb', line 16 def contextify { 'content' => @content } end |