Sha256: 908336e23158b7c4bd7122b0e7e2e19f21fb7512ceeae5e990f0e01c4021b063

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

module Siringa

  @definitions = {}

  class << self
    attr_accessor :configuration
  end

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

  def self.configure
    yield(configuration)
  end

  class Configuration
    attr_accessor :definitions_path, :dumps_path

    def initialize
      @definitions_path = "spec/siringa"
      @dumps_path = 'tmp/dumps'
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
siringa-0.0.4 lib/siringa/configuration.rb
siringa-0.0.3 lib/siringa/configuration.rb
siringa-0.0.1 lib/siringa/configuration.rb