Sha256: 5ce8b4ee966b4a6952b7537ce16bde6533a7fe2fae96a4e39db1e980a505f20b

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

module RspecApiDocs
  class << self
    attr_accessor :configuration

    def configuration
      @configuration ||= Config.new
    end
  end

  def self.configure
    self.configuration ||= Config.new
    yield configuration
  end

  # Used to control the behaviour of the gem.
  class Config
    attr_accessor \
      :output_dir,
      :renderer,
      :validate_params

    def initialize
      @output_dir = 'docs'
      @renderer = :json
      @validate_params = true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-api-docs-0.5.0 lib/rspec_api_docs/config.rb