Sha256: ba40e0675198b01c3270174482d117a464b8a55b2241f400ab84f795e075a72d
Contents?: true
Size: 743 Bytes
Versions: 4
Compression:
Stored size: 743 Bytes
Contents
# frozen_string_literal: true require "tocer" module Rubysmith module Builders module Documentation # Builds project skeleton CONTRIBUTING documentation. class Contribution def self.call(...) = new(...).call def initialize configuration, builder: Builder @configuration = configuration @builder = builder end def call return unless configuration.build_contributions builder.call(configuration.with(template_path: "%project_name%/CONTRIBUTING.#{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