From: gabriele renzi Date: 2004-11-01T09:53:51+09:00 Subject: Re: AppConfig, a configuration container class martinus ha scritto: > Any comments? At first I thought this looks pretty ugly, but it is > actually quite useful. it is nice, thanks for sharing. I'd change initialize slightly like this: def initialize @methods = Hash.new if block_given? yield self fixate else @fixed = false end end so that you could write: config = AppConfig.new do |ac| ac.window.name = "SuperDuper" ac.app.version = "2.1.3" ac.this.is.automatically.created = "blabla" end config.widnow #Error!