Usage

Open command prompt

$> gem install kb-config
$> irb

From irb

$> require 'config'
$> CONFIG = Config::Base.load_config(<path to settings file>, <array of overrides>)

Example calls and expected results

$> CONFIG.common.paid_users_size_limit
# returns 2147483648

$> CONFIG.ftp.name
# returns "hello there, ftp uploading"

$> CONFIG.http.params
# returns ["array", "of", "values"]

$> CONFIG.ftp.lastname
# returns nil

$> CONFIG.ftp.enabled
# returns false

$> CONFIG.ftp[:path]
# returns "/etc/var/uploads"

$> CONFIG.ftp
# returns {:name => "hello there, ftp uploading", :path => "/etc/var/uploads", :enabled => false}