Sha256: feb08dd49a54716a66c89271203a95d90aa48f6dc3f187ee29c740c449fc1771
Contents?: true
Size: 764 Bytes
Versions: 19
Compression:
Stored size: 764 Bytes
Contents
# frozen_string_literal: true require "refinements/structs" module Hanamismith module Builders module Documentation # Builds project skeleton README documentation. class Readme < Rubysmith::Builders::Documentation::Readme using Refinements::Structs def call return configuration unless configuration.build_readme super builder.call(configuration.merge(template_path: "%project_name%/README.#{kind}.erb")) .replace("Rubysmith", "Hanamismith") .replace("rubysmith", "hanamismith") configuration end private attr_reader :configuration, :builder def kind = configuration.documentation_format end end end end
Version data entries
19 entries across 19 versions & 1 rubygems