Class: Marko::Renderers::Artifact
- Defined in:
- lib/marko/renderers/artifact.rb
Overview
Artifact renderer
Constant Summary
Constants inherited from Renderer
Instance Method Summary collapse
-
#initialize ⇒ Artifact
constructor
A new instance of Artifact.
- #render(topic) ⇒ Object
Constructor Details
Instance Method Details
#render(topic) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/marko/renderers/artifact.rb', line 13 def render(topic) root = <<~STR --- \% #{topic.title} \% #{topic[:]} \% #{Time.now.strftime('%Y-%b-%d')} ... STR topic.to_a.drop(1) .map{ @topic.render(it) } .unshift(root) .join(NN) end |