From: "David A. Black" Date: 2009-10-27T00:47:06+09:00 Subject: Re: Setting instance variables from hash parameters (with defaults) Whoops, correction: On Tue, 27 Oct 2009, David A. Black wrote: > > def initialize(opts) > DEFAULTS.update(opts).each do |name, value| That has to be merge, not update. David -- The Ruby training with D. Black, G. Brown, J.McAnally Compleat Jan 22-23, 2010, Tampa, FL Rubyist http://www.thecompleatrubyist.com David A. Black/Ruby Power and Light, LLC (http://www.rubypal.com)