class Softcover::App
Public Instance Methods
get_chapter()
click to toggle source
# File lib/softcover/server/app.rb, line 73 def get_chapter if params[:chapter_slug] @chapter = @manifest.find_chapter_by_slug(params[:chapter_slug]) raise Sinatra::NotFound unless @chapter end end
image_filename(path, extension)
click to toggle source
Returns the image filename for the local document.
# File lib/softcover/server/app.rb, line 39 def image_filename(path, extension) "html/images/#{path}.#{extension}" end