Optimism is a ruby configuration library, with v3.0.0, it's much simple,
now. It's only have two syntax.

*Ruby-syntax*

Rc = Optimism do |c|
    c.host = "localhost"
    c.port = 8080
    c.mail.stmp.address = "stmp.gmail.com"

    my.development do |c|  # namespace
        c.adapter = "postgresql"
        c.database = "hello_development"
        c.username = "foo"
    end

    c.time = proc{ |offset| Time.now } # computed attribute
end

String-syntax

Rc = Optimism <<-EOF
    host = "localhost"
    port = 8080
    mail.stmp.address = "stmp.gmail.com"

    my.development:
        adapter = "postgresql"
        database = "hello_development"
        username = "foo"

    time = proc{ |offset| Time.now }
EOF


project homepage: https://github.com/GutenYe/optimism

-- 
Linux, Vim, Ruby, Lisp, Go, and English.
Github: github.com/GutenYe
website: GutenYe.com
twitter: @gutenye
Optimism <https://github.com/GutenYe/optimism>: a Ruby configuration
library.
ZCM <https://github.com/zcm/zcm>: a ZSH Configuration Manager.