class Octodown::Support::Services::DocumentPresenter
Public Class Methods
call(file, options)
click to toggle source
# File lib/octodown/support/services/document_presenter.rb, line 7 def self.call(file, options) include Octodown::Renderer case options[:presenter] when :raw then Raw when :html then HTML when :server then Server end.new(GithubMarkdown.render(file, options), options).present end