Sha256: 0e5e3363009ec2e2ab2c48471c4fc2babe5adc450ff1e81cb5bfb11d664bf650

Contents?: true

Size: 457 Bytes

Versions: 2

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

module Trifle
  module Docs
    class Configuration
      attr_accessor :path, :templates

      def initialize
        @harvesters = []
        @path = nil
      end

      def harvester
        @harvester ||= Trifle::Docs::Harvester::Walker.new(
          path: path,
          harvesters: @harvesters
        )
      end

      def register_harvester(harvester)
        @harvesters << harvester
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trifle-docs-0.1.1 lib/trifle/docs/configuration.rb
trifle-docs-0.1.0 lib/trifle/docs/configuration.rb