Class: Contextizer::Renderers::Markdown
- Defined in:
- lib/contextizer/renderers/markdown.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(context:) ⇒ Markdown
constructor
A new instance of Markdown.
- #render ⇒ Object
Constructor Details
#initialize(context:) ⇒ Markdown
Returns a new instance of Markdown.
10 11 12 |
# File 'lib/contextizer/renderers/markdown.rb', line 10 def initialize(context:) @context = context end |
Class Method Details
.call(context:) ⇒ Object
6 7 8 |
# File 'lib/contextizer/renderers/markdown.rb', line 6 def self.call(context:) new(context: context).render end |
Instance Method Details
#render ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/contextizer/renderers/markdown.rb', line 14 def render [ render_header, render_file_tree, render_files ].join("\n---\n") end |