Class: PuppetStrings::Markdown::PuppetTask
- Defined in:
- lib/puppet-strings/markdown/puppet_task.rb
Overview
Generates Markdown for a Puppet Task.
Instance Method Summary collapse
-
#initialize(registry) ⇒ PuppetTask
constructor
A new instance of PuppetTask.
- #input_method ⇒ Object
- #render ⇒ Object
- #supports_noop ⇒ Object
Methods inherited from Base
#defaults, #enums, #enums_for_param, #examples, group_name, items, #link, #name, #options, #options_for_param, #params, #private?, #raises, #return_type, #see, #since, #text, #toc_info, #word_wrap, yard_types
Methods included from Helpers
Constructor Details
#initialize(registry) ⇒ PuppetTask
Returns a new instance of PuppetTask.
11 12 13 14 15 |
# File 'lib/puppet-strings/markdown/puppet_task.rb', line 11 def initialize(registry) @template = 'puppet_task.erb' @registry = registry super(registry, 'task') end |
Instance Method Details
#input_method ⇒ Object
25 26 27 |
# File 'lib/puppet-strings/markdown/puppet_task.rb', line 25 def input_method @registry[:input_method] end |
#render ⇒ Object
17 18 19 |
# File 'lib/puppet-strings/markdown/puppet_task.rb', line 17 def render super(@template) end |
#supports_noop ⇒ Object
21 22 23 |
# File 'lib/puppet-strings/markdown/puppet_task.rb', line 21 def supports_noop @registry[:supports_noop] end |