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
.
30 31 32 33 34 35 |
# File 'lib/prmd/rake_tasks/doc.rb', line 30 def initialize(*args, &block) = legacy_parameters(*args) @files = .fetch(:files) { [] } super , &block @options[:template] ||= Prmd::Template.template_dirname end |
Instance Attribute Details
#files ⇒ Array<String>, Hash<String, String>
Schema files that should be rendered
21 22 23 |
# File 'lib/prmd/rake_tasks/doc.rb', line 21 def files @files end |