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.



210
211
212
213
# File 'lib/puppet_readme_generator.rb', line 210

def initialize(t, p)
  @t = t
  @p = p
end

Instance Method Details

#markdownObject



215
216
217
218
219
220
# File 'lib/puppet_readme_generator.rb', line 215

def markdown
  output = []
  output << "##### #{@t['name']}\n"
  output << "```\n#{@t['text']}\n```"
  output.join("\n")
end