Class: Literati::MarkdownRenderer::GitHubWrapper
- Inherits:
-
Object
- Object
- Literati::MarkdownRenderer::GitHubWrapper
- Defined in:
- lib/literati.rb
Instance Method Summary collapse
-
#initialize(content) ⇒ GitHubWrapper
constructor
A new instance of GitHubWrapper.
- #to_html ⇒ Object
Constructor Details
#initialize(content) ⇒ GitHubWrapper
Returns a new instance of GitHubWrapper.
16 17 18 |
# File 'lib/literati.rb', line 16 def initialize(content) @content = content end |
Instance Method Details
#to_html ⇒ Object
20 21 22 |
# File 'lib/literati.rb', line 20 def to_html GitHub::Markdown.render(@content) end |