Class: Prmd::RakeTasks::Doc
- Defined in:
- lib/prmd/rake_tasks/doc.rb
Overview
Documentation rake task
Instance Attribute Summary collapse
-
#files ⇒ Array<String>, Hash<String, String>
Schema files that should be rendered.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ Doc
constructor
Creates a new task with name
name.
Constructor Details
#initialize(name) ⇒ Doc #initialize(options) ⇒ Doc
Creates a new task with name name.
29 30 31 32 33 34 |
# File 'lib/prmd/rake_tasks/doc.rb', line 29 def initialize(*args, &block) = legacy_parameters(*args) @files = .fetch(:files) { [] } super , &block [:template] ||= Prmd::Template.template_dirname end |
Instance Attribute Details
#files ⇒ Array<String>, Hash<String, String>
Schema files that should be rendered
20 21 22 |
# File 'lib/prmd/rake_tasks/doc.rb', line 20 def files @files end |