Sha256: d2072165ea33a0e114e3be7277e0199d2386c7a4c6b734c9db4ca1355dd5bcc9

Contents?: true

Size: 429 Bytes

Versions: 2

Compression:

Stored size: 429 Bytes

Contents

module Autodoc
  class Configuration
    attr_writer :headers, :base_path, :template

    def headers
      @headers ||= %w[Location]
    end

    def base_path
      @base_path ||= begin
        path = Rails.root.join("doc")
        path += ENV["AUTODOC"] if ENV["AUTODOC"] != "1"
        path
      end
    end

    def template
      @template ||= File.read(File.expand_path("../template.md.erb", __FILE__))
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
autodoc-0.2.4 lib/autodoc/configuration.rb
autodoc-0.2.3 lib/autodoc/configuration.rb