Sha256: 62b4a3c4141229a84421c041f31a3ec12bb2161848bfd51903a7886033a1b845

Contents?: true

Size: 557 Bytes

Versions: 3

Compression:

Stored size: 557 Bytes

Contents

# frozen_string_literal: true

require "tocer"

module Rubysmith
  module Extensions
    # Ensures project skeleton documentation has table of content.
    class Tocer
      def self.call(...) = new(...).call

      def initialize configuration, client: ::Tocer::Runner.new
        @configuration = configuration
        @client = client
      end

      def call
        client.call ::Tocer::Container[:configuration] if configuration.build_readme
        configuration
      end

      private

      attr_reader :configuration, :client
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubysmith-6.2.0 lib/rubysmith/extensions/tocer.rb
rubysmith-6.1.0 lib/rubysmith/extensions/tocer.rb
rubysmith-6.0.0 lib/rubysmith/extensions/tocer.rb