sam/harbor — Issue #7: Harbor::Configuration methods should default to returning new containers
Author: sam
Created: 2012-02-28 05:08:21+00:00
State: open

Right now, `config.redis.host = "redis.example"` would raise a `NoMethodError` since `config.redis` hasn't been set. `Harbor::Configuration` should overwrite `method_missing` and register a new Harbor::Configuration instance for you if the entry isn't registered.

This would break cases where you wanted a `nil`, but would make the more common case of wanting to organize your configuration easier/simpler so the answer to that would be to just explicitly set `nil` or `false` if that's what you wanted.