class Gutenug::Chapter

Public Class Methods

new(paragraphs) click to toggle source
# File lib/gutenug/chapter.rb, line 3
def initialize(paragraphs)
  @paragraphs = paragraphs
end

Public Instance Methods

paragraphs() click to toggle source
# File lib/gutenug/chapter.rb, line 11
def paragraphs
  @paragraphs
end
to_s() click to toggle source
# File lib/gutenug/chapter.rb, line 7
def to_s
  @paragraphs.map(&:to_s).join("\n\n")
end