Class: Rubysmith::Builders::Documentation::Version
- Inherits:
-
Object
- Object
- Rubysmith::Builders::Documentation::Version
- Defined in:
- lib/rubysmith/builders/documentation/version.rb
Overview
Builds project skeleton version history.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(configuration, builder: Builder) ⇒ Version
constructor
A new instance of Version.
Constructor Details
Class Method Details
.call ⇒ Object
13 |
# File 'lib/rubysmith/builders/documentation/version.rb', line 13 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/rubysmith/builders/documentation/version.rb', line 20 def call return configuration unless configuration.build_versions builder.call(configuration.merge(template_path: "%project_name%/VERSIONS.#{kind}.erb")) .render configuration end |