Sha256: 4e6fdd602a327e77ed9aed1f382d155cadb98405e4179e4a254020578fed44ae

Contents?: true

Size: 490 Bytes

Versions: 18

Compression:

Stored size: 490 Bytes

Contents

require 'singleton'

module Approvals

  class << self
    def configure(&block)
      block.call Approvals::Configuration.instance
    end

    def configuration
      Approvals::Configuration.instance
    end
  end

  class Configuration
    include Singleton

    attr_writer :approvals_path
    attr_writer :excluded_json_keys

    def approvals_path
      @approvals_path ||= 'fixtures/approvals/'
    end

    def excluded_json_keys
      @excluded_json_keys ||= {}
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
approvals-0.0.26 lib/approvals/configuration.rb
approvals-0.0.25 lib/approvals/configuration.rb
approvals-0.0.24 lib/approvals/configuration.rb
br-approvals-0.0.22 lib/approvals/configuration.rb
approvals-0.0.22 lib/approvals/configuration.rb
approvals-0.0.21 lib/approvals/configuration.rb
approvals-0.0.20 lib/approvals/configuration.rb
approvals-0.0.19 lib/approvals/configuration.rb
approvals-0.0.18 lib/approvals/configuration.rb
approvals-0.0.17 lib/approvals/configuration.rb
approvals-0.0.16 lib/approvals/configuration.rb
approvals-0.0.15 lib/approvals/configuration.rb
approvals-0.0.14 lib/approvals/configuration.rb
approvals-0.0.13 lib/approvals/configuration.rb
approvals-0.0.12 lib/approvals/configuration.rb
approvals-0.0.11 lib/approvals/configuration.rb
approvals-0.0.10 lib/approvals/configuration.rb
approvals-0.0.9 lib/approvals/configuration.rb