class Ebookie::Document::Chapter
Attributes
content[RW]
title[RW]
Public Class Methods
new(title, content)
click to toggle source
# File lib/ebookie/document/chapter.rb, line 7 def initialize(title, content) @title = title @content = content end
Public Instance Methods
slug()
click to toggle source
# File lib/ebookie/document/chapter.rb, line 20 def slug title.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '') end