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.
-
#toc ⇒ Object
Returns the value of attribute toc.
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
.
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/prmd/rake_tasks/doc.rb', line 34 def initialize(*args, &block) = legacy_parameters(*args) @files = .fetch(:files) { [] } super , &block if @options[:settings].is_a? String settings = Prmd.load_schema_file(@options[:settings]) @options.merge! HashHelpers.deep_symbolize_keys(settings) end @options[:template] ||= Prmd::Template.template_dirname end |
Instance Attribute Details
#files ⇒ Array<String>, Hash<String, String>
Schema files that should be rendered
23 24 25 |
# File 'lib/prmd/rake_tasks/doc.rb', line 23 def files @files end |
#toc ⇒ Object
Returns the value of attribute toc.
25 26 27 |
# File 'lib/prmd/rake_tasks/doc.rb', line 25 def toc @toc end |