Method: Bookshelf::Parser::HTML#content
- Defined in:
- lib/bookshelf/parser/html.rb
#content ⇒ Object
Return all chapters wrapped in a div.chapter tag.
34 35 36 37 38 39 40 |
# File 'lib/bookshelf/parser/html.rb', line 34 def content @content ||= String.new.tap do |chapters| entries.each do |entry| chapters << %[<div class="chapter">#{render_file(entry)}</div>] end end end |