Class: Rubysmith::Builders::Documentation::Citation
- Inherits:
-
Object
- Object
- Rubysmith::Builders::Documentation::Citation
- Defined in:
- lib/rubysmith/builders/documentation/citation.rb
Overview
Builds project skeleton citation documentation.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(configuration, builder: Builder) ⇒ Citation
constructor
A new instance of Citation.
Constructor Details
Class Method Details
.call ⇒ Object
12 |
# File 'lib/rubysmith/builders/documentation/citation.rb', line 12 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
19 20 21 22 23 24 |
# File 'lib/rubysmith/builders/documentation/citation.rb', line 19 def call return configuration unless configuration.build_citation builder.call(configuration.merge(template_path: "%project_name%/CITATION.cff.erb")).render configuration end |