Sha256: 1cd83e2778089fd8c83b9514b6bc61d41e20946b3bc70d7253bc885155c8d3a5
Contents?: true
Size: 721 Bytes
Versions: 4
Compression:
Stored size: 721 Bytes
Contents
# frozen_string_literal: true require "tocer" module Rubysmith module Builders module Documentation # Builds project skeleton CHANGES documentation. class Change def self.call(...) = new(...).call def initialize configuration, builder: Builder @configuration = configuration @builder = builder end def call return unless configuration.build_changes builder.call(configuration.with(template_path: "%project_name%/CHANGES.#{kind}.erb")) .render end private attr_reader :configuration, :builder def kind = configuration.documentation_format || "md" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems