Sha256: b72de70d94a8f569195093c32db417d895cb318af5c652d5750ff26f6a992fde
Contents?: true
Size: 816 Bytes
Versions: 23
Compression:
Stored size: 816 Bytes
Contents
# frozen_string_literal: true require "refinements/structs" require "tocer" module Rubysmith module Builders module Documentation # Builds project skeleton version history. class Version using Refinements::Structs def self.call(...) = new(...).call def initialize configuration, builder: Builder @configuration = configuration @builder = builder end def call return configuration unless configuration.build_versions builder.call(configuration.merge(template_path: "%project_name%/VERSIONS.#{kind}.erb")) .render configuration end private attr_reader :configuration, :builder def kind = configuration.documentation_format end end end end
Version data entries
23 entries across 23 versions & 1 rubygems