Class: Octodown::Support::Services::DocumentPresenter
- Inherits:
-
Object
- Object
- Octodown::Support::Services::DocumentPresenter
- Defined in:
- lib/octodown/support/services/document_presenter.rb
Class Method Summary collapse
Class Method Details
.call(file, options) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/octodown/support/services/document_presenter.rb', line 5 def self.call(file, ) include Octodown::Renderer case [:presenter] when :raw then Raw when :html then HTML when :server then Server end.new(GithubMarkdown.render(file, ), ).present end |