Class: Lookbook::MarkdownRenderer
- Inherits:
-
Service
- Object
- Service
- Lookbook::MarkdownRenderer
show all
- Defined in:
- lib/lookbook/services/markdown_renderer.rb
Defined Under Namespace
Classes: LookbookMarkdownRenderer
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Service
call
Constructor Details
Returns a new instance of MarkdownRenderer.
7
8
9
10
|
# File 'lib/lookbook/services/markdown_renderer.rb', line 7
def initialize(text, opts = {})
@text = text
@opts = Lookbook.config.markdown_options.merge(opts.to_h)
end
|
Instance Attribute Details
#opts ⇒ Object
5
6
7
|
# File 'lib/lookbook/services/markdown_renderer.rb', line 5
def opts
@opts
end
|
#text ⇒ Object
5
6
7
|
# File 'lib/lookbook/services/markdown_renderer.rb', line 5
def text
@text
end
|