Sha256: b34a6e614d75dbb80220de6aea318d34234c01ba1e710f44089f423088624764
Contents?: true
Size: 630 Bytes
Versions: 4
Compression:
Stored size: 630 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, :exclude_request_headers, :exclude_response_headers def initialize @output_dir = 'docs' @renderer = :json @validate_params = true @exclude_request_headers = [] @exclude_response_headers = [] end end end
Version data entries
4 entries across 4 versions & 1 rubygems