Sha256: 97a0e0fffe7941a198d44a2219ee3596a9c95de2fd8037ffd2b0366e756bb259

Contents?: true

Size: 619 Bytes

Versions: 5

Compression:

Stored size: 619 Bytes

Contents

module TestsDoc

  class Configuration

    def self.config(property, default = nil)
      attr_writer property

      define_method property do
        value = instance_variable_get("@#{property}")

        value.nil? ? default : instance_variable_get("@#{property}")
      end
    end

    config :changes_whitelist_regex, ""
    config :add_spec_file_number, true
    config :add_index_timestamps, true
    config :debug, false
    config :logger, TestsDoc::Logger
    config :changes_whitelist_regexes, []
    config :root_folder, "tests-doc"
    config :doc_folder, "api"
    config :key_separator, "@"
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tests_doc-0.0.7 lib/tests_doc/configuration.rb
tests_doc-0.0.6 lib/tests_doc/configuration.rb
tests_doc-0.0.5 lib/tests_doc/configuration.rb
tests_doc-0.0.4 lib/tests_doc/configuration.rb
tests_doc-0.0.3 lib/tests_doc/configuration.rb