From: Gregory Brown Date: 2007-06-16T00:17:26+09:00 Subject: Re: Using extend for initialization settings? On 6/15/07, Trans wrote: > def initialize( settings ) > settings.each{|k,v| send("{#k}=",v) > end > def initialize( settings ) > extend settings.to_module > end Side by side, I have to say the former is clearer than the latter, and doesn't require changing core.