Sha256: 64685440e0a8a4fca56b82a6cc9041e4d7cf44a2f9f43cb66d834d1a5e9b1a3a

Contents?: true

Size: 628 Bytes

Versions: 2

Compression:

Stored size: 628 Bytes

Contents

# coding: utf-8

require 'confuse/version'

require 'confuse/key_splitter'
require 'confuse/config'
require 'confuse/item'
require 'confuse/definition'
require 'confuse/namespace'
require 'confuse/source'
require 'confuse/converter'
require 'confuse/errors'

# Top level namespace for confuse gem
module Confuse
  class << self
    def define(&block)
      Definition.new(&block)
    end

    def source(options = {})
      Source.create(options)
    end

    def config(options = {}, &block)
      definition = Definition.new(&block)
      source = Source.create(options)
      Config.new(definition, source)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
confuse-1.1.1 lib/confuse.rb
confuse-1.1.0 lib/confuse.rb