Module: Stationed::Generators::Plugins::Yard
- Included in:
- AppGenerator
- Defined in:
- lib/stationed/generators/plugins/yard.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/stationed/generators/plugins/yard.rb', line 5 def self.prepended(base) base.class_option :yard, type: :boolean, default: true, desc: 'Include and configure Yard for API documentation' end |
Instance Method Details
#finish_template ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/stationed/generators/plugins/yard.rb', line 12 def finish_template return super unless [:yard] gem 'yard', require: false, group: :doc gem 'kramdown', require: false, group: :doc copy_file 'yardopts', '.yardopts' copy_file 'yard.rake', 'lib/tasks/yard.rake' super end |