Class: PuppetReadmeGenerator::Example
- Inherits:
-
Object
- Object
- PuppetReadmeGenerator::Example
- Defined in:
- lib/puppet_readme_generator.rb
Instance Method Summary collapse
-
#initialize(t, p) ⇒ Example
constructor
A new instance of Example.
- #markdown ⇒ Object
Constructor Details
#initialize(t, p) ⇒ Example
Returns a new instance of Example.
214 215 216 217 |
# File 'lib/puppet_readme_generator.rb', line 214 def initialize(t, p) @t = t @p = p end |
Instance Method Details
#markdown ⇒ Object
219 220 221 222 223 224 |
# File 'lib/puppet_readme_generator.rb', line 219 def markdown output = [] output << "##### #{@t['name']}\n" output << "```\n#{@t['text']}\n```" output.join("\n") end |