Sha256: f55dbf8eda4b877e7136035055e143d661d2dae5445361a47376d74da93d2d94

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

module Trifle
  module Docs
    class Configuration
      attr_accessor :path, :views, :layout, :namespace

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trifle-docs-0.2.0 lib/trifle/docs/configuration.rb