Sha256: ecfafd2138817605d32a656f0a9d2db13b8d1cab4a8c91058be4ceca92d4cc08

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

module Relaton
  module Config
    def configure
      if block_given?
        yield configuration
      end
    end

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

  class Configuration
    attr_accessor :logs, :use_api

    def initialize
      @logs = %i(warning error)
      @use_api = false # @TODO change to true when we start using api.relaton.org
    end
  end

  extend Config
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
relaton-1.7.pre7 lib/relaton/config.rb
relaton-1.7.6 lib/relaton/config.rb
relaton-1.7.5 lib/relaton/config.rb
relaton-1.7.4 lib/relaton/config.rb