class Bookery::Book

Attributes

authors[R]
chapters[R]
editors[R]
language[R]
template[R]
title[R]

Public Class Methods

new(chapters, config) click to toggle source
# File lib/bookery/book.rb, line 6
def initialize(chapters, config)
  @title = config[:title]
  @authors = config[:authors]
  @editors = config[:editors]
  @language = config[:language]
  @template = config[:template]
  @chapters = chapters
end

Public Instance Methods

content() click to toggle source
# File lib/bookery/book.rb, line 15
def content
  chapters.inject('') do |content, chapter|
    content << chapter.content
  end
end