Sha256: 991912d5e227896c29ebc88e5f2cb21a10298e72545245b043a62d09a073d5f2
Contents?: true
Size: 816 Bytes
Versions: 18
Compression:
Stored size: 816 Bytes
Contents
# frozen_string_literal: true require "tocer" require "refinements/structs" 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
18 entries across 18 versions & 1 rubygems