Sha256: 2a74b11f4423d57c2c41cac370fd31fe46f250e02bc99c93c4a5a69247d0f627

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 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/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

1 entries across 1 versions & 1 rubygems

Version Path
confuse-1.0.0 lib/confuse.rb