Class: PuppetReadmeGenerator::Example

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet_readme_generator.rb

Instance Method Summary collapse

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

#markdownObject



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