Sha256: 7bb3eabb51bbcfa261ff3063e8d34d337162022902403d8ebbf98d6466da3825
Contents?: true
Size: 976 Bytes
Versions: 15
Compression:
Stored size: 976 Bytes
Contents
# frozen_string_literal: true require "tocer" require "refinements/structs" module Rubysmith module Extensions # Ensures project skeleton documentation has table of contents. class Tocer using Refinements::Structs def self.call(...) = new(...).call def initialize configuration, client: ::Tocer::Runner.new, content: ::Tocer::Configuration::Content.new @configuration = configuration @client = client @content = content end def call client.call settings if configuration.build_readme configuration end private attr_reader :configuration, :client, :content def settings content.merge(root_dir: configuration.project_root) .transmute! configuration, includes: :extensions_tocer_includes, label: :extensions_tocer_label end end end end
Version data entries
15 entries across 15 versions & 1 rubygems