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