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.



171
172
173
174
# File 'lib/puppet_readme_generator.rb', line 171

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

Instance Method Details

#markdownObject



176
177
178
179
180
181
# File 'lib/puppet_readme_generator.rb', line 176

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